search for: scale_fill_gradientn

Displaying 8 results from an estimated 8 matches for "scale_fill_gradientn".

Did you mean: scale_fill_gradient
2011 Dec 09
3
ggplot with geom_tile
...y in 1:21){ temp<- rev(seq(10000+((i-1)*500),12000+((i-1)*500),100)) disc[i,y]=temp[y] }} disc1=t(disc) bla=as.vector(disc1) tot$dis=bla cols=c("darkred"," white"," darkblue") p <- ggplot(tot, aes(x=temp, y=precip,group=dis)) p+geom_tile(aes(fill=dis)) + scale_fill_gradientn(colours=cols) ### This creates the plot that I want, but with white horizontal and vertical lines that I do not need. I have tried different things, but have not found the solution. Can you help me with this problem? Kind regards, Saskia van Pelt
2010 Sep 09
2
See what is inside a matrix
Hello everyone.. Is there any graphical tool to help me see what is inside a matrix? I have 100x100 dimensions matrix and as you already know as it does not fit on my screen R splits it into pieces. I would like to thank you in advance for your help Best Regards Alex [[alternative HTML version deleted]]
2020 Apr 29
2
problem with `viridis` on Ubuntu 20.04
I've hit a bug on Ubuntu 20.04. The issue occurred both with the R version that shipped with Ubuntu last week, and it is occurring now with the CRAN packages from one of the mirros (deb http://cran.mirror.garr.it/mirrors/CRAN/bin/linux/ubuntu/ focal-cran40/). The issue occurs whether I use the deb package for viridis in the Ubuntu repos, or I install it with `install.packages()` in R.
2013 Feb 21
2
ggplot2, geomtile fill assignment
...match,] return(output) } sub1 <- mysubset(input, input$depth, depths[1]) sub2 <- mysubset(input, input$depth, depths[2]) sub3 <- mysubset(input, input$depth, depths[3]) sub4 <- mysubset(input, input$depth, depths[4]) p <- ggplot(sub1, aes(x=x,y=y,fill=amplitude)) p + geom_tile() + scale_fill_gradientn("Custom Colours",colours=c("purple","blue","green","yellow","orange","red")) # custom colours legend range and assigned colors is different than in the next plot p <- ggplot(sub3, aes(x=x,y=y,fill=amplitude)) p + geom_tile()...
2010 Oct 28
1
Heatmap construction problems
I am very new to R and don't have any computer program experience whatsoever. I am trying to generate a heatmap of the following data: Phylum,AI,AJT,BY,GA,Grt,Sm Acidobacteria,0.5,0.7,2.7,0.1,2.6,1.0 Actinobacteria,33.7,65.1,9.7,2.0,3.9,2.1 Bacteroidetes,9.7,5.6,0.7,13.2,41.1,21.6 CCM11b,0.0,0.0,0.0,0.0,0.0,0.1 Chlamydiae,0.1,0.1,0.0,0.0,1.0,0.2
2020 Apr 29
0
problem with `viridis` on Ubuntu 20.04
...9;/home/edd/') R> R> library(viridisLite) R> example(viridis) viridsR> library(ggplot2) viridsR> library(hexbin) viridsR> dat <- data.frame(x = rnorm(10000), y = rnorm(10000)) viridsR> ggplot(dat, aes(x = x, y = y)) + virids+ geom_hex() + coord_fixed() + virids+ scale_fill_gradientn(colours = viridis(256, option = "D")) Hit <Return> to see next plot: viridsR> # using code from RColorBrewer to demo the palette viridsR> n = 200 viridsR> image( virids+ 1:n, 1, as.matrix(1:n), virids+ col = viridis(n, option = "D"), virids+ xlab = "...
2011 Jun 13
1
Heatmap in R and/or ggplot2
I have a dataframe df with columns x, y, and height. I want to create a heatmap-like plot that creates a grid of x by y, and then color codes the grid depending on the value of height. Is there a ggplot2 object to do this? I'm able to easily do this in Excel with pivot tables and conditional formatting so I'm including an image that is close to the output I want. I want to be able to
2020 Apr 30
2
problem with `viridis` on Ubuntu 20.04
...t; R> example(viridis) > > viridsR> library(ggplot2) > > viridsR> library(hexbin) > > viridsR> dat <- data.frame(x = rnorm(10000), y = rnorm(10000)) > > viridsR> ggplot(dat, aes(x = x, y = y)) + > virids+ geom_hex() + coord_fixed() + > virids+ scale_fill_gradientn(colours = viridis(256, option = "D")) > Hit <Return> to see next plot: > > viridsR> # using code from RColorBrewer to demo the palette > viridsR> n = 200 > > viridsR> image( > virids+ 1:n, 1, as.matrix(1:n), > virids+ col = viridis(n, option =...