草庐IT

colorbrewer

全部标签

关于 r:geom_contour_filled 调色板

geom_contour_filledcolourpalette我试图运行以下代码,但似乎无法将调色板更改为ColorBrewer的Spectral调色板。想法?123456789101112maya mass=seq(1,10,length.out=10), mois=seq(11,20,length.out=10))%>% expand(mass,mois)%>% mutate(  diff=mois-mass*runif(1) )%>% ggplot(aes(mass,mois,z=diff))+  geom_contour_filled()+  scale_fill_distiller

关于 r:geom_contour_filled 调色板

geom_contour_filledcolourpalette我试图运行以下代码,但似乎无法将调色板更改为ColorBrewer的Spectral调色板。想法?123456789101112maya mass=seq(1,10,length.out=10), mois=seq(11,20,length.out=10))%>% expand(mass,mois)%>% mutate(  diff=mois-mass*runif(1) )%>% ggplot(aes(mass,mois,z=diff))+  geom_contour_filled()+  scale_fill_distiller