search for: scale_colour_gradient

Displaying 15 results from an estimated 15 matches for "scale_colour_gradient".

Did you mean: scale_colour_gradient2
2018 Dec 12
2
Subset dentro de un for
Gracias Marcelino. Si, (i in 1:length(GT)), lo he utilizado mil veces, pero se me sigue olvidando de una vez a otra. Lo iba a mirar, pero me centré primero en que me hiciera bien el mapa. He probado el for y me da este error: Error in aes(x = lon, y = lat, color = get(GT[i]), size = 2) + scale_colour_gradient(low = ("white"), : non-numeric argument to binary operator Quoting Marcelino De La Cruz Rot <marcelino.delacruz en urjc.es>: > Ten cuidado, porque empiezas el for como: > > for(i in GT) > > y luego el color del aes lo defines como: > > color= GT[i] >...
2018 Dec 12
2
Subset dentro de un for
...k())+ 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=df2,aes(x=lon,y=lat, color= GT[i],size=2) + scale_colour_gradient(low=("white"),high=("red"),guide="colourbar",limits=c(0,max))+ geom_path(data=map_data('world'), aes(x=long, y=lat,group=group))+ labs(title = paste("5026 Minimum number of IFd species to go extinct")))) } Quoting Carlos...
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", h...
2011 Aug 16
1
ggplot - some questions concerning histograms
...do a histogram, but nothing is displayed although it works with another vector. I think it is because of the very small values (n=1000, min=1.222e-24 max, 1.890e-20). I used qplot(variable,geom="histogram")... If do it with the standard plot function it works perfectly. 2) I want to use scale_colour_gradient(). Is there any reference where I can find the predefined colour-palletes like rainbow etc. and how they look like? 3) How can I change the white grid in the background? In some cases I'd like to remove the white grid 4) How are the ticks on the X-axis calculated? Can they be changed in a way...
2019 Sep 20
2
ggplot con gradientes complejos
...> > Una alternativa que suele funcionar es la de crear una columna adicional > en tu dataframe que dé cuenta del color dependiendo de los valores del > resto de las variables que tú decidas y utilizar este vector como valor > para cada punto, en vez de dejar que sea la función "scale_colour_gradient" > la que decida el color... > > Gracias, > Carlos. > > El vie., 20 sept. 2019 a las 10:30, Manuel Mendoza (< > mmendoza en fulbrightmail.org>) escribió: > >> Gracias Emilio. Si, son asimétricos porque se mueven en rangos distintos. >> De hecho, miden...
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") > > > > [[alterna...
2009 Dec 22
0
ggplot2 version 0.8.5
...emitre are now user controllable (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:...
2009 Dec 22
0
ggplot2 version 0.8.5
...emitre are now user controllable (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:...
2018 Feb 13
0
plotting the regression coefficients
Hi scale_colour_gradient(?red?, ?blue?) should do the trick. Actually I found it by Google ggplot colour http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/ http://www.sthda.com/english/wiki/ggplot2-colors-how-to-change-colors-automatically-and-manually#gradient-colors-for-scatter-plots question. So you could find it too an...
2009 Jun 10
1
ggplot, qplot: alpha channel for colors corresponding to factor
Hi, I have a qplot like the one in the minimal example below, except I also have faceting like this: qplot(jitter(Goodall),jitter(Better.adapt),colour=Second.adapt,facets=~Pol,data=d1) and with the real data I get quite a lot of overplotting, so I would like to add an alpha channel. In addition, I would like to be able to control which colors are used for each value of Second.adapt (which
2010 Sep 07
2
Plotting longitudinal data
Hello, Hope that someone could help me plotting longitudinal data below: 7213 3333330001 0.8300 13.05.09 1 1 3333330001 0.8700 09.02.05 NULL 4797 3333330001 0.7700 21.03.07 NULL 2399 3333330001 0.7800 12.04.06 NULL 2400 3333330002 NULL 27.03.06 NULL 7230 3333330002 0.8200 14.05.09 0 2 3333330002 0.8400 09.02.05 NULL 4798 3333330002 0.8700 20.03.07 0 4799 3333330003 0.9000 20.03.07 13 2401
2018 Dec 12
4
Subset dentro de un for
Muy buenas. Quiero hacer un loop en el que en cada iteración se hace un subset con el que se queda con las muestras para la que cierta variable es positiva. Si hago esto, sale bien: df2<-subset(df, subset = var1>0) Pero he probado así (y de no sé cuantas formas más), antes de hacer el for, y no sale: GT<- c("var1","var2", ? ) df2<-subset(df,
2018 Feb 12
2
plotting the regression coefficients
Hi Petr and Richard; Thanks for your responses and supports. I just faced a different problem. I have the following R codes and work well. p <- ggplot(a, aes(x=Phenotypes, y=Metabolites, size=abs(Beta), colour=factor(sign(Beta)))) + theme(axis.text=element_text(size = 5)) p1<-p+geom_point() p2<-p1+theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(),
2012 Mar 02
0
ggplot2 0.9.0
..._colour_discrete <- scale_colour_brewer p * Scales now automatically shrink to what is actually displayed on the plot, not the underlying data used for statistical transformation. If you want the old behaviour, supply `shrink = FALSE` to the facetting specification. (Fixes #125) * `scale_colour_gradient` and `scale_fill_gradient` now use a colour scheme with constant hue but varying chroma and luminance. This is better because it creates a natural ordering inline with the order of the colour values. FACETS * Converted from proto to S3 objects, and class methods (somewhat) documented in `fa...
2012 Mar 02
0
ggplot2 0.9.0
..._colour_discrete <- scale_colour_brewer p * Scales now automatically shrink to what is actually displayed on the plot, not the underlying data used for statistical transformation. If you want the old behaviour, supply `shrink = FALSE` to the facetting specification. (Fixes #125) * `scale_colour_gradient` and `scale_fill_gradient` now use a colour scheme with constant hue but varying chroma and luminance. This is better because it creates a natural ordering inline with the order of the colour values. FACETS * Converted from proto to S3 objects, and class methods (somewhat) documented in `fa...