[R] Plot and Boxplot in the same graph
jharris at web.de
Sun Mar 22 12:18:19 CET 2009
I tried to do it with:
> y <- rnorm(100)
> x <- gl(2,50)
But the problem is, that the the y coordinates are shown for the boxplot and
not for "points(x,y)"
Is it possible to show the graph with the (x,y) coordinates with the
points() function and the boxplots only for the x coordinates. A better
solution could be to have a seperated y axis on the left side for the
Is it possible to do it in this was ?
Paul Johnson-11 wrote:
> On Fri, Mar 20, 2009 at 10:02 PM, johnhj <jharris at web.de> wrote:
>> Is it possible, to use the plot() funktion and the boxplot() funktion
>> together ?
>> I will plot a simple graph and additionally to the graph on certain
>> boxplots. I have imagined to plot the graph a little bit transparency and
>> show in the same graph on certain places boxplots....
>> Is it possible to do it in this way ?
> Run the boxplot first, then use points() or other subsidiary plot
> functions to add the points in the figure.
>> y <- rnorm(100)
>> x <- gl(2,50)
> Paul E. Johnson
> Professor, Political Science
> 1541 Lilac Lane, Room 504
> University of Kansas
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/Plot-and-Boxplot-in-the-same-graph-tp22632355p22645076.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help