[R] Overlapping grid in plot

Robin Gruna robin_gruna at hotmail.com
Sun Jan 16 10:05:01 CET 2005


Ok, here is some sample code to my problem

> barplot(c(1,2,4,3,2), legend.text = "Legend")
> grid()

..the lines are crossing my barchart :-(...


----- Original Message ----- 
From: "Duncan Murdoch" <murdoch at stats.uwo.ca>
To: <r-help at stat.math.ethz.ch>
Sent: Sunday, January 16, 2005 12:33 AM
Subject: Re: [R] Overlapping grid in plot


> On Sat, 15 Jan 2005 23:02:25 +0000, "Robin Gruna"
> <robin_gruna at hotmail.com> wrote :
>
> >Hi,
> >I want to create a barchart plot with a grid. The grid is overlapping my
> >plot and legend, looking not very nice. How can I put the grid into the
> >background of my plot?
>
> You should show some sample code to illustrate the problem.  There are
> several ways to draw a bar chart; how to fix yours depends on which
> one you used.
>
> Duncan Murdoch
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list