The values appear, indeed, however the grid has now shifted so that it is not aligned with the ticks on the axes. I'm using grid(nx=NULL, ny=NULL) that should do the trick to follow the axes' ticks, but it does not.
I would appreciate any sugestions how to solve it. Regards, Sara pln <- read.table(file="PLN.txt", header=TRUE, dec=",") #colClasess=c("Date", NA, NA) FORplot <- ts(pln[,1], end=c(2011,8), freq=52) plot(FORplot, type="l", lwd="1", ylab="EUR/PLN", xlab=NULL, xlim=c(1993, 2011), ylim = c(2, 5), panel.first = grid(nx=NULL, ny=NULL)) 2011/3/16 Sara Szeremeta <sara.szerem...@gmail.com> > Thanks a lot!! It helped! > > > 2011/3/15 Sara Szeremeta <sara.szerem...@gmail.com> > >> Hi >> >> I am trying to plot two simple graphs with a grid in background. The axis >> and grid appears in correct position, but the actual data are not there.... >> Can somebody provide me a hint what is missing? >> >> The code is: >> >> pln <- read.table(file="PLN.txt", header=TRUE, dec=",") >> par(mfrow=c(1,2)) >> plot(pln[,1], type="l", lwd="2", ylab="EUR/PLN", xlab=NULL, xlim = c(1993, >> 2011), ylim = c(2, 5), panel.first = grid(nx=NULL, ny=NULL)) >> plot(log(pln[,1]), type="l", ylab="EUR/PLN", xlab=NULL, xlim = c(1993, >> 2011), panel.first = grid(equilogs = FALSE)) >> >> Cheers. >> Sara >> > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.