[R] Changing labels positions in two graphics
David Winsemius
dwinsemius at comcast.net
Thu Aug 2 01:30:00 CEST 2012
On Aug 1, 2012, at 10:15 AM, gaiarrido wrote:
> Hi,
> I´ve got some problems with the labels of the x-axis
> I,ve got two factors with two categories each: sex (males and
> females) and
> area (central and peninsulae),
> but because of the lenngth in the graphic just appeared two of the
> four
> labels.
> I thought the solution could be rotate it 45º degrees, I have read
> it can be
> done with "srt" or "rotate", but I don´t know hoe to use it.
> http://r.789695.n4.nabble.com/file/n4638722/boxplot_lg_haemogregarines%7Earea%26sex.jpeg
> The graphic has been generated like this.
> boxplot(log(hemogregarinas
> +0.5)~area*sex,notch=F,col=(c("white","grey")),ylab="SVL",boxwex=0.4)
>
> Where should i put an order to ratate those labels
Have you read FAQ 7.27?
> I´ve got a similar problem with a pie chart , one of the pieces
> overlaps
> with one label,here´s the order and the pie chart
> pie3D(eyspen,labels = lblsp, col=(c("dark grey","white","light
> grey")),explode=0.1,main="% of age-sex categories in Peninsulae")
> http://r.789695.n4.nabble.com/file/n4638722/3D_pie_population_Penins.jpeg
>
Generally I avoid responding to questions about pie charts. I'm pretty
sure this is not in base R anyway, so your first duty is to name the
package from which you have obtained 'pie3d'. (Although, I'm even less
likely to offer advice about whatever it is supposed to do.)
> ?pie3d
No documentation for ‘pie3d’ in specified packages and libraries:
you could try ‘??pie3d’
Suspecting that this was one of Jim Lemon's efforts, I did see with >
help(package=plotrix) that plotrix has a 'pie3d' and that it also has
a 'pie3d.labels' function.
> -----
> Mario Garrido Escudero
David Winsemius, MD
Alameda, CA, USA
More information about the R-help
mailing list