hello I want to compare the values of two columns of a dataset on a graph. Which graphic do you recommend ? regards Ahmet Temiz -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Hi r-help-bounces at r-project.org napsal dne 10.03.2008 08:12:28:> hello > > I want to compare the values of two columns of a dataset on a graph. > Which graphic do you recommend ?It depends on what values you have and what you want to compare. plot(x,y) boxplot(x, y) There are plenty other options in R. Regards Petr> > regards > > > Ahmet Temiz > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
Petr PIKAL wrote:> >hello > >I want to compare the values of two columns of a dataset on a graph. >Which graphic do you recommend ? >Hi Petr, "barp" will compare the two columns displaying the values as heights of bars. "stackpoly" will display superimposed polygons, the upper edges of which represent the data values in each column. "twoord.plot" will dislay two data vectors as point/line plots even if they have different ranges. All are in the plotrix package. Jim
Charilaos Skiadas
2008-Mar-10 11:57 UTC
[R] Odp: comparing two columns of a dataset on a graph
On Mar 10, 2008, at 5:15 AM, Petr PIKAL wrote:> Hi > r-help-bounces at r-project.org napsal dne 10.03.2008 08:12:28: > >> hello >> >> I want to compare the values of two columns of a dataset on a graph. >> Which graphic do you recommend ? > > It depends on what values you have and what you want to compare. > > plot(x,y) > > boxplot(x, y) > > There are plenty other options in R.When it comes to these, I prefer plot(y~x, data=dataset), since it picks up the correct graph depending on what types the variables have.> Regards > PetrHaris Skiadas Department of Mathematics and Computer Science Hanover College