hi everyone, am new on ggplot2, please i want to plot monthly variability boxplot of two stations namely "Island" and "Inland" in same graph, which means i expect a group and sub-group of the dataframe, the group is the "Month"(X-Axis) which consists of "Jan" to "Dec", the sub-group comprises of stations("Island" and "Inland"). a similar expected boxplot, is attached herein
Zoo <- read_excel("C:/Users/NJOKU/Desktop/Zoo.xlsx")
View(Zoo)
group_by(Zoo,Station)
A tibble: 750 x 4
Groups: Station [2]
Rainfall Month Station Year
1 15 Jan Island 1984
2 53.7 Jan Island 1985
3 12.9 Jan Island 1986
4 4.1 Jan Island 1987
5 76.9 Jan Island 1988
6 0 Jan Island 1989
7 0 Jan Island 1990
8 15.9 Jan Island 1991
9 0 Jan Island 1992
10 0 Jan Island 1993
... with 740 more rows
group_by(Zoo, Month)
A tibble: 750 x 4
Groups: Month [12]
Rainfall Month Station Year
1 15 Jan Island 1984
2 53.7 Jan Island 1985
3 12.9 Jan Island 1986
4 4.1 Jan Island 1987
5 76.9 Jan Island 1988
6 0 Jan Island 1989
7 0 Jan Island 1990
8 15.9 Jan Island 1991
9 0 Jan Island 1992
10 0 Jan Island 1993
... with 740 more rows
My Y-Axis should be "Rainfall(mm)
below are boxplots similar boxplots i created but i want the two stations in one graph in this present work