[R] [ggplot] controlling axis and major/minor tick marks

Sebastian Weber sebastian.weber at physik.tu-darmstadt.de
Tue Oct 31 10:36:47 CET 2006


Hello there!

I'm starting with ggplot and was wondering how I could control the axis
of a plot. I would like the axis of the plot to be drawn black which I
thought to acheive with the option axis.colour="black". However, this
had no real effect on the plot. Then I found grid.colour which I changed
to black as well. Now I got my axis as I wanted them, but ggplot now
draws the grid inside the plot with black lines as well, which definetly
do not want to appear. So how can I get a black border around my plots?
Furthermore, I would like to indicate positions of major and minor ticks
in my plots. Where can I do this?

Thanks in advance.

Greetings,

Sebastian

Ah, I use R 2.3.1 and ggplot 0.4.0, if that is important ...



More information about the R-help mailing list