Re: [R] graph lines don;t appear

From: Sara Szeremeta <sara.szeremeta_at_gmail.com>
Date: Thu, 17 Mar 2011 01:57:02 +0100

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.szeremeta_at_gmail.com>

> Thanks a lot!! It helped!
>
>
> 2011/3/15 Sara Szeremeta <sara.szeremeta_at_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_at_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. Received on Thu 17 Mar 2011 - 01:22:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Mar 2011 - 01:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive