全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
3080 1
2018-07-14
在使用 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())

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-7-16 16:58:16
可以把代码截图发出来嘛,这样不知道具体出现哪问题了,如果只是按照错误提示
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群