Re: [R] ggplot2: remove axis ticks

2015-12-07 Thread William Dunlap
Change the order of adding the themes from theme(axis.ticks=element_blank()) + theme_bw() to theme_bw() + theme(axis.ticks=element_blank()) because theme_bw() adds axis.ticks = element_line(colour = "black"). Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Dec 7, 2015 at 7:10 AM, Brian

[R] ggplot2: remove axis ticks

2015-12-07 Thread Brian Smith
Hi, I was trying to remove the axis tick marks and their values using theme() but haven't had much success. Here is sample code: rx <- sample(1:100,10) ry <- sample(1:100,10) rz <- sample(letters[1:3],10,replace=T) rdf <- data.frame(rx,ry,rz) p <- ggplot(rdf,aes(x=rx,y=ry)) p1 <- p + geom_point(