在使用 geom_density_ridges绘制山脊图示老提示问题:Picking joint bandwidth of 0.181Don't know how to automatically pick scale for object of type quosure/formula. Defaulting to continuous.
Error in data.frame(..., check.names = FALSE) :
参数值意味着不同的行数: 2, 1536
我的代码全是按照网上的:
ggplot(lincoln_weather, aes(x=`Mean Temperature [F]`, y=`Month`, fill=..x..))+
geom_density_ridges_gradient(scale=3, rel_min_height=0.01, gradient_lwd = 1.)+
scale_x_continuous(expand = c(0.01, 0))+
scale_y_discrete(expand = c(0.01,0))+
scale_fill_viridis(name="Temp. [F]", option = "C")+
labs(title="Temperature in Lincoln NE",subtitle="Mean temperature (Fahrenheit) by month for 2016\nData:Orogin CSV from the Weather Underground ")+
theme_ridges(font_size = 13, grid = FALSE)+
theme(axis.title.y = element_blank())