想请问一下,我在使用ggplot2中geom_mark_ellipse功能时,显示没有找到该功能,是怎么一回事?
原代码如下
grass.plot=ggplot(data=RDA_grass_data,aes(RDA1,RDA2))+
geom_point(aes(color=郁闭度,fill=郁闭度),size=3)+
scale_color_manual(values=c("red","blue","green","black","grey","darkgreen"))+
labs(title = "Grass RDA Plot",x=paste("RDA1",RDA_grass1," %"),y=paste("RDA2",RDA_grass2," %"))+
theme_bw()+
theme(axis.title = element_text(family = "serif", face = "bold", size = 18,colour = "black"))+
theme(axis.text = element_text(family = "serif", face = "bold", size = 16,color="black"))+
geon_mark_ellipse(aes(fill=郁闭度),alpha=0.1)+ #给散点图按组加上椭圆阴影
coord_cartesian(clip = "off")
你把报错和代码文件发给我
【相关推荐】
library(ggplot2)
library(tidyverse)
library(palmerpenguins)
theme_set(theme_bw(16))