I am trying to plot multiple plots from each data stored in the list.My code works when I am trying to plot for a single dataframe in a list:
ggplot(data.frame(s[1]), aes(x = No, y = Val)) +
geom_line(linetype = "dashed",color="red")+geom_point()
but unable to work it when I am running a loop.
for (i in 1:3)
{
ggplot(data.frame(s[i]), aes(x = No, y = Val)) +
geom_line(linetype = "dashed",color="red")+geom_point()
i = i+1
}
How to resolve the issue?