Dear all,
Thank you for your email and help. I solved the problem!
All the best!
Catalin
On Tue, 7 Jul 2020 at 20:43, Rasmus Liland wrote:
> On 2020-07-07 19:23 +0200, Thierry Onkelinx wrote:
> >
> > Don't use the cut() function.
>
> Ah, I see it now. Changing
>
> fill = cut(cor, zCu
On 2020-07-07 19:23 +0200, Thierry Onkelinx wrote:
>
> Don't use the cut() function.
Ah, I see it now. Changing
fill = cut(cor, zCuts)
to
fill = cor
did it, probably. Perhaps Catalin agrees.
__
R-help@r-project.org mailing list -
Don't use the cut() function.
ir. Thierry Onkelinx
Statisticus / Statistician
Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkel...@inbo.be
On 2020-07-07 12:44 +0200, Thierry Onkelinx via R-help wrote:
> Op di 7 jul. 2020 om 12:02 schreef Catalin Roibu :
> >
> > Dear R users,
> >
> > I want to create a plot for multiple
> > sites and to keep the same color
> > range scale (the correlation values
> > range from -0.5 to 0.7 for all d
Dear Catalin,
use scale_fill_gradient() and set fixed limits
ggplot(df1, aes(x=as.factor(spei), y=as.factor(month), fill = cut(cor,
zCuts))) +
geom_tile() +
scale_fill_gradient(limits = c(-0.7, 0.7))
Best regards,
ir. Thierry Onkelinx
Statisticus / Statistician
Vlaamse Overheid / Governmen
Dear R users,
I want to create a plot for multiple sites and to keep the same color range
scale (the correlation values range from -0.5 to 0.7 for all data, but I
have sites with different min and max).
I used this code:
cols<-c("#0288D1", "#039BE5", "#03A9F4","#29B6F6", "#4FC3F7", "#FFCDD2",
"#E
6 matches
Mail list logo