biomass <- read.csv("R_SPIA_Biomass.csv")
boxplot1 <- ggplot(biomass,aes(x=Tree_biomass,y=State,fill=Type))+
geom_boxplot(outlier.color="grey") + geom_jitter()
biomass <- read.csv("R_SPIA_Biomass.csv")
boxplot1 <- ggplot(biomass,aes(x=Tree_biomass,y=State,fill=Type))+
geom_boxplot(outlier.color="grey") + geom_jitter()
View() is not the correct fucntion to use for displaying the output of ggplot(). You should use print(), either explicitly or implicitly by simply writing the name of the object. Either of these should work.
boxplot1 <- ggplot(biomass,aes(x=Tree_biomass,y=State,fill=Type))+
geom_boxplot(outlier.color="grey") + geom_jitter()
print(boxplot1)
boxplot1 <- ggplot(biomass,aes(x=Tree_biomass,y=State,fill=Type))+
geom_boxplot(outlier.color="grey") + geom_jitter()
boxplot1
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.