当前位置:网站首页>[R] Use grafify for statistical plotting, ANOVA, intervention comparisons, and more!
[R] Use grafify for statistical plotting, ANOVA, intervention comparisons, and more!
2022-08-03 13:09:00 【Demeanor 78】
This suggests a high qualityR包grafify,grafifyFunction displays in the following aspects:
A few lines of code to draw the high level of appearance statistical chart,支持6大类,19种图表 (见上图);
The palette that contains high identification,可与ggplot2良好兼容;
Support the variance analysis (ANOVA),Including randomized block and repeated measurement design;
Support the changes before and after the intervention more (post-hoc comparisons);
模拟1-way和2-way ANOVA设计.
grafify调色盘
Support the following palette,Contains qualitative color scheme(Qualitative colormaps)如okabe_ito、r4Such as color scheme and order(Sequential colormaps)如grey_conti等.
使用方法类似ggplot2,参考 R可视化07|ggplot2图层-标度图层(scale layer)-颜色盘篇
plot_grafify_palette(palette = "kelly") #查看kellyAll color palette number value
grafify:::graf_palettes #输出grafifyAll the palette color value
grafify绘制统计图
Statistical figure correspondingRealization method are below the red box里了,Need the class diagram,Use the figure above functions,
下面简单举例,说明grafify的使用:
demo0
plot_4d_scatterbar()实现3或4个分类变量bar图,
plot_4d_scatterbar(data_2w_Tdeath,
Genotype,
PI,
Time,
Experiment,
b_alpha = 0.7,
ColPal = "vibrant")+
scale_colour_manual(values = c("black", "grey20"))+
labs(title = "2way/RM, bars/SD",
subtitle = "(shapes = randomised blocks)")
demo1
Map a combination:bar图+散点图+SD,plot_scatterbar_sd()可轻松搞定
library('grafify') # 导入包
plot_scatterbar_sd(data = data_doubling_time,#使用内置数据集data_doubling_time
xcol = Student, # 指定X轴变量
ycol = Doubling_time, # 指定Y轴变量
SingleColour = "r4_1")+ # 指定颜色,Take child palette herer4
labs(title = "Scatter+bar+SD") # 设置标题
demo2
QQ图:使用plot_qqline()即可,
plot_qqline(data_t_pratio,
log(Cytokine),
Genotype)+
labs(title = "QQ plot with plot_qqline()")
demo3
Clinical a chart:SCIThe article as well as a chart comparing the changes before and after the intervention,grafify中plot_befafter_colours()可轻松实现,
plot_befafter_colours(data = data_t_pdiff,
xcol = Condition,
ycol = Mass,
match = Subject,
symsize = 5,
ColPal = "r4",
ColRev = T)+
labs(title = "TBefore-after with plot_befafter_colours")
demo4
plot_xy_NumGroup()
plot_xy_NumGroup(dplyr::filter(diamonds, cut == "Premium" & clarity == "SI1"),
depth,
price,
carat,
s_alpha = .5,
ColPal = "grey_conti")+ #colschem
labs(title = "plot_xy_NumGroup()")
grafify方差分析
This part is not in detail,The categories of main supportANOVA:
Simple linear models: One-way ANOVA, Two-way ANOVAMixed effects models: One-way ANOVA & randomised blocks,Two-way ANOVA & randomised blocks,Two-way ANOVA, repeated-measures & randomised blocksPosthoc comparisons:posthoc_Pariwise, posthoc_Levelwise, posthoc_vsRef
参考:https://github.com/ashenoy-cmbi/grafify

往期精彩回顾
适合初学者入门人工智能的路线及资料下载(图文+视频)机器学习入门系列下载机器学习及深度学习笔记等资料打印《统计学习方法》的代码复现专辑机器学习交流qq群955171419,加入微信群请扫码
边栏推荐
- When Nodejs installation depends on cpnm, the install shows Error: Cannot find module 'fs/promises'
- 数据库基础知识一(MySQL)[通俗易懂]
- leetcode 11. The container that holds the most water
- ECCV 2022 | AirDet: 无需微调的小样本目标检测方法
- An动画优化之传统引导层动画
- Tinymce plugins [Tinymce扩展插件集合]
- HCIP 第十六天笔记(SVI、生成树协议)
- 什么是分布式锁?几种分布式锁分别是怎么实现的?
- Filebeat 如何保持文件状态?
- An动画优化之遮罩层动画
猜你喜欢

Sogou news - dataset

HCIP第十五天笔记(企业网的三层架构、VLAN以及VLAN 的配置)

【R】用grafify搞定统计绘图、方差分析、干预比较等!

类型转换、常用运算符

实数取整写入文件(C语言文件篇)

Win11怎么禁止软件后台运行?Win11系统禁止应用在后台运行的方法

Image fusion DDcGAN study notes

Graphic animation and button animation of an animation basic component

Station B responded that "HR said that core users are all Loser": the interviewer was persuaded to quit at the end of last year and will learn lessons to strengthen management

业界新标杆!阿里开源自研高并发编程核心笔记(2022最新版)
随机推荐
AMS simulation
Yahoo! Answers-数据集
d写二进制
In order to counteract the drop in sales and explore the low-end market, Weilai's new brand products are priced as low as 100,000?
An animation optimization of traditional guide layer animation
如何让history历史记录前带时间戳
Image fusion GAN-FM study notes
Classes and Objects (lower middle)
setTimeout 、setInterval、requestAnimationFrame
数据库基础知识一(MySQL)[通俗易懂]
Mysql重启后innodb和myisam插入的主键id变化总结
[Verilog] HDLBits Problem Solution - Circuits/Sequential Logic/Latches and Flip-Flops
Free Internet fax platform fax _ don't show number
期货开户中常见问题汇总
BOM系列之sessionStorage
The components of the basis of An animation movie clip animation between traditional filling
Sogou news-数据集
业界新标杆!阿里开源自研高并发编程核心笔记(2022最新版)
[微服务]多级缓存
Image fusion SDDGAN article learning