介绍
可发表的prism点图
加载R包
knitr::opts_chunk$set(echo = TRUE, message = FALSE, warning = FALSE)
library(tidyverse)
library(ggpubr)
library(ggprism)
rm(list = ls())
options(stringsAsFactors = F)
导入数据
data("iris")
head(iris)
处理数据
plotdata <- iris |>
dplyr::select(Sepal.Length, Species) |>
dplyr::mutate(Species = factor(Species, c("setosa", "versicolor", "virginica"))) |>
dplyr::rename(Group = Species,
Index = Sepal.Length)
head(plotdata)
标签:dplyr,library,prism,可视化,plotdata,点图,Species
From: https://blog.csdn.net/H20230717/article/details/139242627