[R] ggplot2 axis color

Felipe Carrillo mazatlanmexico at yahoo.com
Tue Jul 24 22:09:59 CEST 2007


Hi:
Does anyone have an idea on how to color the axis and
labels using ggplot2? This is what I got:

library(ggplot2)
 p <- qplot(total_bill, tip, data = tips)
 NewPlot<-  p + geom_abline(slope=c(0.1,0.15,0.2),
colour=c("red","blue","yellow"),size=c(2,5,2))
NewPlot + geom_smooth(colour="green",
size=3,linetype=3)
NewPlot$background.fill<-"cornsilk" 
NewPlot$background.colour <- "blue"
NewPlot$axis.colour<-"red"  ????? it doesn't do it
Thanks

 Felipe D. Carrillo
  Fishery Biologist
  US Fish & Wildlife Service
  Red Bluff, California 96080



      ____________________________________________________________________________________



More information about the R-help mailing list