Showing only y-axis major line

13 views
Skip to first unread message

teragene

unread,
Mar 18, 2009, 1:22:49 AM3/18/09
to ggplot2
Hi!

== Goal
I want to plot with only y-axis major line on the panel.

== Applied code
I did
> p+opts(panel.background=theme_rect(colour="white"), panel.grid.major.y=theme_line(colour="red"))

== Results
As you expect, this code fails to show grid lines.

Would you advise me?

James Howison

unread,
Mar 18, 2009, 12:29:57 PM3/18/09
to ggplot2
Data, please.

You only want the major y gridlines and you want them to show up in red?

Sawfoot

unread,
Apr 15, 2009, 8:11:26 AM4/15/09
to ggplot2
I also would like to know if its possible to plot just one axis
gridline now or in future (though I don’t want them in red). With a
categorical variable plotted on one axis, gridlines can be unnecessary
for that axis.


On Mar 18, 5:29 pm, James Howison <ja...@freelancepropaganda.com>
wrote:
Reply all
Reply to author
Forward
0 new messages