visualize("diamonds", "price:x", type = "dist")
visualize("diamonds", "carat:x", yvar = "price", type = "scatter")
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", custom = TRUE) +
ggtitle("A scatterplot") + xlab("price in $")
visualize(dataset = "diamonds", xvar = "price:carat", custom = TRUE) %>%
{.[[1]] + ggtitle("A histogram") + xlab("price in $")}
visualize(dataset = "diamonds", xvar = "cut", yvar = "price", type = "bar",
facet_row = "cut", fill = "cut", custom = FALSE)
Run the code above in your browser using DataLab