just add
limits=c(-zmax1,zmax1)
to the scale_fill_gradient2-call
hth
Am 20.12.2017 um 18:21 schrieb Morway, Eric:
> I apprecaite the guidance Eik, that works great! I'm also wondering if
> you have any pointers for how I might stretch the color scale so that
> the max and min values are the s
I apprecaite the guidance Eik, that works great! I'm also wondering if you
have any pointers for how I might stretch the color scale so that the max
and min values are the same? Right now, the min is -0.064 and the max is
something closer to 0.04. As you can see in what I sent, I tried adding:
Hi Eric,
you can use an annotate-layer, eg
ind<-which(sig>0,arr.ind = T)
ggplot(m1.melted, aes(x = Month, y = Site, fill = Concentration), autoscale
= FALSE, zmin = -1 * zmax1, zmax = zmax1) +
geom_tile() +
coord_equal() +
scale_fill_gradient2(low = "darkred",
m
Using the small reproducible example below, I'd like to know if one can
somehow use the matrix "sig" (defined below) to add a black outline (with
lwd=2) to all pixels with a corresponding value of 1 in the matrix 'sig'?
So for example, in the ggplot2 plot below, the pixel located at [1,3] would
be
4 matches
Mail list logo