0
点赞
收藏
分享

微信扫一扫

科研绘图系列:R语言组合图形绘图

舟海君 2024-09-03 阅读 10

在这里插入图片描述

介绍

柱状图、箱线图和棒棒图组合

加载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
举报

相关推荐

0 条评论