axis.ticks.x

43 views
Skip to first unread message

baptiste auguie

unread,
Mar 30, 2009, 6:53:20 AM3/30/09
to ggp...@googlegroups.com
Dear all,


I'm trying to get rid off the tick marks of the x axis only. It seems
that the documentation (February 24, 2009) is out-of-date in this
respect (table 8.1 features a axis.ticks.y that does not seem to exist
anymore). Instead, I found a guide_axis() function that could do the
job but it's too low level to be used directly. Any pointers?


p <- qplot(1,1)
p + opts(axis.ticks = theme_blank())


Best regards,

baptiste
--


sessionInfo()
R version 2.8.0 (2008-10-20)
i386-apple-darwin8.11.1

locale:
en_GB.UTF-8/en_US.UTF-8/C/C/en_GB.UTF-8/en_GB.UTF-8

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

other attached packages:
[1] ggplotpp_0.1 adimpro_0.7.1 scatteringR_1.0 doBy_3.6
spectroR_1.0 arrays_1.0 spectra_1.0
baptMisc_1.0
[9] constants_1.0 ggplot2_0.8.2 reshape_0.8.2
plyr_0.1.3 proto_0.3-8 latticeExtra_0.5-5
lattice_0.17-15 fortunes_1.3-5
[17] RColorBrewer_1.0-2

loaded via a namespace (and not attached):
[1] Hmisc_3.4-4 cluster_1.11.11 tools_2.8.0


_____________________________

Baptiste Auguié

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag
______________________________

learnr

unread,
Mar 30, 2009, 8:24:46 AM3/30/09
to ggplot2
See message
http://groups.google.com/group/ggplot2/msg/0ea252285ba64942

where Hadley suggests to set the breaks on the x axis to NA - e.g.

qplot(mpg, wt, data = mtcars) + scale_x_continuous(breaks = NA)
qplot(factor(cyl), wt, data = mtcars) + scale_x_discrete(breaks = NA)

--
http://learnr.wordpress.com

baptiste auguie

unread,
Mar 30, 2009, 10:05:51 AM3/30/09
to learnr, ggp...@googlegroups.com
thanks!
--
Reply all
Reply to author
Forward
0 new messages