Results obtained from an experiment to compare yields (as measured by dried weight of plants) obtained under a control and two different treatment condition.
library(plotly)
## Caricamento del pacchetto richiesto: ggplot2
##
## Caricamento pacchetto: 'plotly'
## Il seguente oggetto è mascherato da 'package:ggplot2':
##
## last_plot
## Il seguente oggetto è mascherato da 'package:stats':
##
## filter
## Il seguente oggetto è mascherato da 'package:graphics':
##
## layout
fig <- plot_ly(PlantGrowth, y = ~weight, color =~group, type = "box")
fig
library(plotly)
b <- ggplot(PlantGrowth, aes(x=group, y=weight, fill=group)) + geom_boxplot()
ggplotly(b)