Skip to content
Prev 308452 / 398506 Next

Centering labels on X-axis

Hello,

Your working code needs a plot first:

plot(1:5, xaxt = "n")

And there's no 'text' argument to axis(). As for the centering of axis 
labels, they're centered on my graphics device. Exactly what is 
happening to yours?

 > sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Portugal.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods base

other attached packages:
[1] ggplot2_0.9.2 igraph_0.6-2

loaded via a namespace (and not attached):
  [1] colorspace_1.1-1   dichromat_1.2-4    digest_0.5.2 fortunes_1.5-0
  [5] grid_2.15.1        gtable_0.1.1       labeling_0.1 MASS_7.3-21
  [9] memoise_0.1        munsell_0.3        plyr_1.7.1 proto_0.3-9.2
[13] RColorBrewer_1.0-5 reshape2_1.2.1     scales_0.2.2 stringr_0.6.1
[17] tools_2.15.1

Hope this helps,

Rui Barradas
Em 19-10-2012 15:39, YAddo escreveu: