# Scatter plot between the weights before and after study for
# different types of treatment
plot_ly(ano, x = ~Prewt, y = ~Postwt, color = ~Treat,
type = "scatter", mode="markers", opacity = 3)
# Box plot representing the Change in weight for different
# types of treatment
plot_ly(ano, x = ~Change, color = ~Treat, type = "box")
# Bar plot representing the Weight before and after study
# for each treatment
plot_ly(ano, x = ~Treat, y = ~Prewt, type = "bar", color = I("red"),
name="Prewt", opacity=0.5) %>%
add_trace(y = ~Postwt, name = "Postwt", color=I("blue"),
opacity=0.5) %>%
layout(title="Weights Before and After Study",
yaxis=list(title="Count"))