[R] plot question, increasing Y-axis labels
Jim Lemon
jim at bitwrit.com.au
Fri Mar 11 12:17:38 CET 2011
On 03/11/2011 05:08 AM, Mike Gibson wrote:
>
> I want to increase the number of labels on my y-axis. Here is my code:
>
> plot(fish$species, fish$fl, ylim=c(5,25), xlab="Species", ylab="Fork Length (in)")
>
> The plot is great but it only has numerical y-labes every five values (i.e. labels at 5, 10, 15, and 25). I want R to give me the same plot but a y-axis label at every integer (i.e. labels at 5,6,7,8,9,10,...25).
>
> I have been unable to figure this out. Any adice would be greatly appreciated.
>
Hi Mike,
If your labels are still missing or too close after using Josh's
suggestion, have a look at staxlab (plotrix).
Jim
More information about the R-help
mailing list