I have a data.frame
like below.
library(tidyverse)
library(lubridate)
set.seed(129)
DF <- data.frame(Date = seq(as.Date("2001-01-01"), to = as.Date("2005-12-31"), by = "month"),
O1 = runif(60,1,5), R1 = runif(60,1,5), C1 = runif(60,1,5),
O2 = runif(60,1,5), R2 = runif(60,1,5), C2 = runif(60,1,5),
O3 = runif(60,1,5), R3 = runif(60,1,5), C3 = runif(60,1,5))
Target:
I would like to produced a 3 facet
boxplot
, where facet
one be comparing dataset of O1, R1, and C1
. On facet 2
, i would like to see boxplot
for O2, R2, and C2
, and likewise for the 3rd facet
.
Example:
I am looking for a plot
like attached. the example plot is 2 facet
while I am looking for a 3 facet
.