Can I separately control the x and y axes using ggplot?

It is not supported to control axis line separately. You can remove or edit the line after drawing.

It is not supported to control axis line separately. You can remove or edit the line after drawing: > baseplot + opts(axis. Line = theme_segment(colour = 'black', size = 2)) > grid.

Remove(gPath("axis_v", "axis.line. Segments"), grep=TRUE) > baseplot + opts(axis. Line = theme_segment(colour = 'black', size = 2)) > grid.

Edit(gPath("axis_v", "axis.line. Segments"), grep=TRUE, gp=gpar(col="red")) > grid. Edit(gPath("axis_h", "axis.line.

Segments"), grep=TRUE, gp=gpar(col="blue")).

1 Nice demonstration of grid graphics. – Andrie Jul 1 at 10:32 @kohske that works very nicely, but is there a way that I can assign the new graph to an object? E.g.

, so that I can just call baseplot and it will plot the edited plot? – David Jul 1 at 16:39.

I suspect you are correct in your analysis. However, there is one other potential workaround: geom_hline and geom_vline: baseplot + geom_hline(yintercept=0, colour="red", size = 3) + geom_vline(xintercept=0, colour="blue", size = 2) Again not ideal, since the lines span the entire plot area rather than just framing the axis, if you know what I mean.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions