How to make a Figure Caption for Boxplot???

Hi everyone,

I am trying to create a figure caption through R Studio for my boxplot picture but I do not know what code to use to do so. Here is the code I have been using to create my boxplot:

>boxplot(`Shannon Index`)

>quantile(`Shannon Index`, probs= c(0, 0.25, 0.5, 0.75, 1))

>boxplot(`Shannon Index`, main=”Boxplot”, ylab= “Shannon Index Values”, ylim=c(0,1), las=1)

>boxplot(`Shannon Index`~ Community)

>boxplot(`Shannon Index`~Community, main=”Boxplot by Grassland Community”)

Would anyone know what code I have to use to create a figure caption?

you could try mtext()

boxplot(iris$Sepal.Length,iris$Sepal.Width,main="Boxplot" ,names = c("Length","Width"))
mtext("Figure 3a - Iris Sepal",side=1,line=3)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.