ggplot(iris, aes(x = Petal.Length, y = Sepal.Length, alpha = Species)) +
geom_point() +
scale_alpha_focus(focus_levels = "versicolor")
ggplot(iris, aes(x = Petal.Length, y = Sepal.Length, color = Species)) +
geom_point() +
scale_color_focus(focus_levels = "setosa", color_focus = "red")
ggplot(iris, aes(x = Petal.Length, y = Sepal.Length, color = Species)) +
geom_point() +
scale_color_focus(focus_levels = c("setosa", "virginica"), color_focus = c("red", "blue"))
ggplot(mtcars, aes(x = wt, y = mpg, color = rownames(mtcars))) +
geom_point() +
scale_color_focus(focus_levels = c("Mazda RX4", "Merc 230"), palette_focus = "Set2")
ggplot(iris,aes(x = Petal.Length, group = Species, fill = Species)) +
geom_histogram() +
scale_fill_focus(focus_levels = "versicolor", color_focus = "red")
ggplot(iris,aes(x = Petal.Length, y = Sepal.Length, shape = Species)) +
geom_point() +
scale_shape_focus(focus_levels = "versicolor")
ggplot(iris,aes(x = Petal.Length, y = Sepal.Length, size = Species)) +
geom_point() +
scale_size_focus(focus_levels = "versicolor")
Run the code above in your browser using DataLab