search for: scale_color_gradientn

Displaying 3 results from an estimated 3 matches for "scale_color_gradientn".

Did you mean: scale_colour_gradientn
2017 Jul 05
1
How can I make the legend in ggplot2 the same height as my plot?
...e. Do you have any suggestions for me? dat<-data.frame(temperature) P1<-ggplot(dat, aes(X, Y)) Scenario1<-P1+geom_point(aes(colour = value), size = 1)+ theme_bw()+ theme(axis.text.x = element_blank(),axis.text.y = element_blank()) Scenario1<-Scenario1+facet_wrap(~variable, ncol=2)+scale_color_gradientn(colours = rainbow(48)) Scenario1+guides(fill = guide_colorbar(bar width = 1.5, barheight = unit(10, "mm"))) Thanks, KG [[alternative HTML version deleted]]
2011 Aug 09
1
ggplot2 setting colors for individual groups.
...o produce some graphics that will be part of my master's thesis. Here's what I would like to do here, (attached is an example of how far I've gotten). I'm working on mapping the values of several different parameters for each station in my study. So far I've been working with scale_color_gradientn to handle the coloring. What I would like to do is rather than have a smooth color gradient, I would like make the values between A and B a set color, between B and C another color, and so on. That's where I'm having an issue, because the values are all continuous data, and it seems like...
2017 Nov 10
1
How to create separate legend for each plot in the function of facet_wrap in ggplot2?
...ot;B"), class = "factor")), .Names = c("X", "Y", "value", "group"), class = "data.frame", row.names = c(NA, -12L)) AB<-ggplot(data = dat, aes(x = X, y = Y, color = value)) + geom_point(size =2) + coord_equal() + theme_bw()+ scale_color_gradientn(colours = terrain.colors( 7)) AB+facet_wrap(~group, scales="free")+theme(strip.text = element_text(size = 8)) Thanks MW [[alternative HTML version deleted]]