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

From: Jim Lemon <>
Date: Mon, 10 Mar 2008 21:54:16 +1100

Petr PIKAL wrote:
>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 mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 10 Mar 2008 - 10:53:07 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 - 11:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive