本文主要是介绍科研绘图系列:R语言组合图形绘图,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
介绍
柱状图、箱线图和棒棒图组合
加载R包
# Library
library(ggplot2)
library(dplyr)
library(forcats)
读取数据
data <- data.frame(name=c("north","south","south-east","north-west","south-west","north-east","west","east"),val=sample(seq(1,10), 8 )
)head(data)
画图
# Reorder
这篇关于科研绘图系列:R语言组合图形绘图的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!