[R] help with plot()

From: tom soyer <tom.soyer_at_gmail.com>
Date: Mon 16 Oct 2006 - 13:44:44 GMT


Hi,

I am new to R and I have been trying it out. I ran into a problem with the plot() function. Below is my code:

 > d <- read.table("c:/test/sp.txt",header=0)
> spval <- d[,2]
> plot(spval,type="l")

Warning messages:
1: graphical parameter "type" is obsolete in: plot.window(xlim, ylim, log, asp, ...)
2: graphical parameter "type" is obsolete in: axis(side, at, labels, tick, line, pos, outer, font, lty, lwd,
3: graphical parameter "type" is obsolete in: title(main, sub, xlab, ylab, line, outer, ...)
4: graphical parameter "type" is obsolete in: axis(side, at, labels, tick, line, pos, outer, font, lty, lwd,

I tried to plot a line graph from a text file with two columns. Some how R won't plot the data as lines, and it kept giving me the same warning: "type" is obsolete. What does this mean? Am I doing something wrong, or is the parameter really obsolete, or do I need install some package?

Thanks,

Tom

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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 Mon Oct 16 23:50:41 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 17 Oct 2006 - 01:30:10 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.