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

From: Charilaos Skiadas <cskiadas_at_gmail.com>
Date: Mon, 10 Mar 2008 07:57:58 -0400

On Mar 10, 2008, at 5:15 AM, Petr PIKAL wrote:

> Hi
> r-help-bounces@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



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 Mon 10 Mar 2008 - 12:04:38 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 Mon 10 Mar 2008 - 12:30:21 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