visualize("diamonds", "price:x", type = "dist")
visualize("diamonds", "carat:x", yvar = "price", type = "scatter")
## Not run: ------------------------------------
# visualize(dataset = "diamonds", yvar = "price", xvar = c("cut","clarity"),
# type = "bar", fun = "median")
# visualize(dataset = "diamonds", yvar = "price", xvar = c("cut","clarity"),
# type = "line", fun = "max")
# visualize(dataset = "diamonds", yvar = "price", xvar = "carat", type = "scatter",
# size = "table", custom = TRUE) + scale_size(range=c(1,10), guide = "none")
# visualize(dataset = "diamonds", yvar = "price", xvar = "carat", type = "scatter", custom = TRUE) +
# labs(title = "A scatterplot", x = "price in $")
# visualize(dataset = "diamonds", xvar = "price:carat", custom = TRUE) %>%
# gridExtra::grid.arrange(grobs = ., top = "Histograms", ncol = 2)
# visualize(dataset = "diamonds", xvar = "cut", yvar = "price", type = "bar",
# facet_row = "cut", fill = "cut")
## ---------------------------------------------
Run the code above in your browser using DataLab