[R] [ggplot] controlling axis and major/minor tick marks
hadley wickham
h.wickham at gmail.com
Tue Oct 31 13:45:55 CET 2006
Hi Sebastian,
axis.colour should control the colour of the tickmarks, the axis
labels, and the line which the ticks attach to. What is not working
in your case? grid.colour only effects the grid lines inside the
plot.
Currently, ggplot has no notion of major and minor tick marks (mainly
because I don't have a good algorithim to generate them), but it is on
my to do list.
Regards,
Hadley
On 10/31/06, Sebastian Weber <sebastian.weber at physik.tu-darmstadt.de> wrote:
> 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 ...
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list