[R] Odp: comparing two columns of a dataset on a graph

Charilaos Skiadas cskiadas at gmail.com
Mon Mar 10 12:57:58 CET 2008


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
> Petr

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College



More information about the R-help mailing list