search for: scale_colour_gradient2

Displaying 11 results from an estimated 11 matches for "scale_colour_gradient2".

2009 Jan 22
1
ggplot2
I have been struggling to get the legends in ggplot2 right or do away with them altogether (on which I have already sent a post). In the following code, the labels argument in the scale_colour_gradient2 does not give me the desired labels in the legend. Could someone explain? qplot(Year,CDR,data=b3,colour=Phase,geom=c("point","line"),legend.position="bottom")->p p+scale_colour_gradient2(limits=c(1,2), midpoint=1,low="magenta", mid="magenta", hi...
2018 Nov 14
2
Los puntos no tapen el mapa hecho ggplot
...anel.grid.minor = element_blank())+theme(axis.text.x=element_blank(),axis.text.y=element_blank())+ theme(axis.ticks = element_blank())+xlab("") + ylab("")+ geom_point(data=Data,aes(x=lon,y=lat,color= value),size=1.5) + scale_colour_gradient2(low = "white", mid = "blue",high = "red", midpoint = 175, guide="colourbar",limits=c(0,350))+ labs(title = "Depth of changes")) . -- Dr Manuel Mendoza Department of Biogeography and...
2020 Jul 28
2
Superponer mapas en ggplot
...=lon,y=lat,color= PA),shape=15,size=1) + scale_color_manual(values=c("white","grey70"))+ geom_path(data=map_data('world'), aes(x=long, y=lat,group=group)) ggplot(legend=FALSE)+ geom_point(data=NCDS,aes(x=lon,y=lat,color= ExtTG7085),shape=15,size=1) + # PTP o FTP scale_colour_gradient2(low = "white",high="RED",midpoint=0,guide="colourbar",limits=c(0,200))+ geom_path(data=map_data('world'), aes(x=long, y=lat,group=group)) [[alternative HTML version deleted]]
2007 Jul 16
1
Problem to sort factor
...39;s my code: ---8<---------- > delta <- ggplot(subset(data, Model==c("dyn", "dl4", "dl3")), aes(x=Problemsize, y=Fitness)) + geom_smooth(size=1, color="black", fill=alpha("blue", 0.2))+ geom_point(size=0.5, aes(colour=DeltaConfig))+ scale_colour_gradient2(expression(bold(paste(Delta,"Config"))), limits=c(0,10), midpoint=5, low="green", mid="yellow", high="red") > delta <- delta + facet_grid(Model ~ . , margins = TRUE) > delta ---8<---------- and the data ---8<---------...
2019 Sep 19
2
ggplot con gradientes complejos
...theme(panel.grid.minor = element_blank())+ theme(axis.text.x=element_blank(),axis.text.y=element_blank())+ theme(axis.ticks = element_blank()) + xlab("") + ylab("")+ geom_point(data=SGData2,aes(x=lon,y=lat,color=Ch7085),shape=15,size=1.5) + * scale_colour_gradient2(limits=c(-400, 200),low = "blue",high="red",midpoint=0*, guide="colourbar")+geom_path(data=world, aes(x=long, y=lat,group=group))+ labs(title = "ch7085") [[alternative HTML version deleted]]
2012 Sep 26
1
Interaction scatterplots in ggplot with multiple regression lines
...gression line): ########################### library(ggplot2) set.seed(1234) predictor <- rnorm(1000, 3) outcome <- rnorm(1000, 10) moderator <- rnorm(1000) mydata <- data.frame(predictor, outcome, moderator) ggplot(mydata, aes(x=predictor, y=outcome, color=moderator)) + geom_point() + scale_colour_gradient2(low="blue", high="red") + stat_smooth(method=lm, se=TRUE, fullrange=T) ########################### Also, how can I set how many discrete levels to plot (e.g., 3 instead of 7)? Thanks in advance!
2019 Sep 20
2
ggplot con gradientes complejos
...t; > theme(axis.text.x=element_blank(),axis.text.y=element_blank())+ > > theme(axis.ticks = element_blank()) + xlab("") + ylab("")+ > > > > geom_point(data=SGData2,aes(x=lon,y=lat,color=Ch7085),shape=15,size=1.5) > + > > * scale_colour_gradient2(limits=c(-400, 200),low = > > "blue",high="red",midpoint=0*, > > guide="colourbar")+geom_path(data=world, aes(x=long, > > y=lat,group=group))+ > > labs(title = "ch7085") > > > > [[alternat...
2019 Sep 20
2
ggplot con gradientes complejos
...lank())+ >> > > theme(axis.ticks = element_blank()) + xlab("") + >> ylab("")+ >> > > >> > > >> geom_point(data=SGData2,aes(x=lon,y=lat,color=Ch7085),shape=15,size=1.5) >> > + >> > > * scale_colour_gradient2(limits=c(-400, 200),low = >> > > "blue",high="red",midpoint=0*, >> > > guide="colourbar")+geom_path(data=world, aes(x=long, >> > > y=lat,group=group))+ >> > > labs(title = "ch7085")...
2009 Aug 21
2
2d color coded line plot
Hi! I'm not experienced very experienced with R and i'm looking for a way doing plots like in this example http://www.mathworks.de/matlabcentral/fx_files/23566/2/color_line3.png, which basically it is a 2d plot in which the 3rd dimension (variable) is color coded. I have only seen elsewhere that it is possible to color code dots in a scatter plot and I tried it with success although I
2009 Dec 22
0
ggplot2 version 0.8.5
...trollable (implements #24) * scales: all scales check that breaks are supplied if labels are, and that breaks and labels are the same length (implements #40) * scales: if breaks are a named vector, the names will be used as labels (thanks to suggestion by David Kahle) * scale_colour_gradient, scale_colour_gradient2 & scale_colour_gradientn now have formatter argument to match scale_continuous * updated citation to refer to the ggplot2 book Bug fixes * coord_cartesian now correctly sets limits when one or both of the position scales are non-linear. (fixes #17) * coord_equal: now works with non-linea...
2009 Dec 22
0
ggplot2 version 0.8.5
...trollable (implements #24) * scales: all scales check that breaks are supplied if labels are, and that breaks and labels are the same length (implements #40) * scales: if breaks are a named vector, the names will be used as labels (thanks to suggestion by David Kahle) * scale_colour_gradient, scale_colour_gradient2 & scale_colour_gradientn now have formatter argument to match scale_continuous * updated citation to refer to the ggplot2 book Bug fixes * coord_cartesian now correctly sets limits when one or both of the position scales are non-linear. (fixes #17) * coord_equal: now works with non-linea...