I used the lattice package to draw a line plot.
library(lattice)
xyplot(price~month,groups=perc,data=Edf,type='l',
main="Percentile chart of OpRes Charge Rates Forcast",
ylab="OpRes Charge Rate ($/MWh)", xlab="Months",ylim=c(0,40),auto.key=TRUE)
Then I wanted to add some dots to the existing plot.
points(rep(1,length(OpResWestJan)),OpResWestJan)
OpResWestJan
is a vector, but the dots never appeared in the existing plot, and there were no warnings.
points()
) with Lattice graphics commands (likexyplot
). You would need to create a custom panel function to work with lattice. It's hard to help you any further since you did not provide a reproducible example – MrFlicklatticeExtra
package. You can then combinexyplot()
,layer()
andpanel.points()
with+
. – user3710546