4/11/2020

Rebeca Buttner 04/11/2020

library(plotly); library(ggplot2)

g <- ggplot(mtcars, aes(y = mpg, x = hp, fill = as.factor(cyl)))
g <- g + geom_bar(stat = "identity")
ggplotly(g)

Plot