首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >tidyplot package

tidyplot package

原创
作者头像
JJJJack
发布2024-12-30 23:04:44
发布2024-12-30 23:04:44
1591
举报

Explore tidyplot R package

1. install packages in Rstudio

代码语言:r
复制
devtools::install_github("jbengler/tidyplots")
library(tidyverse)
library(tidyplots)

2. explore the examples in the documents

代码语言:r
复制
study %>%
  tidyplot(x = treatment, y = score, color = treatment) %>%
  add_mean_bar(alpha = 0.4) %>%
  add_sem_errorbar() %>%
  add_data_points_beeswarm()

出现奇怪的错误,一时没找到解决思路…

代码语言:r
复制
Error in Ops.data.frame(guide_loc, panel_loc) :
  ‘==’ only defined for equally-sized data frames

3. Troubleshooting

Google搜索了关键词,发现很多这样的错误,所以并不是tidyplot package本身的问题。最后通过update R version (from 4.2 to 4.4)成功的解决了问题。可视化如下:

4. ref:

https://jbengler.github.io/tidyplots/

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Explore tidyplot R package
    • 1. install packages in Rstudio
    • 2. explore the examples in the documents
    • 3. Troubleshooting
    • 4. ref:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档