search for: scale_color_gradientn

Displaying 2 results from an estimated 2 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]]
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]]