dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_bar()
dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_dash()
dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_dot()
dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_value()
dinosaurs |>
tidyplot(x = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_line()
dinosaurs |>
tidyplot(x = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_area()
# Combination
dinosaurs |>
tidyplot(x = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_bar(alpha = 0.4) |>
add_count_dash() |>
add_count_dot() |>
add_count_value() |>
add_count_line()
# Changing arguments: alpha
# Makes objects transparent
dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
theme_minimal_y() |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_bar(alpha = 0.4)
# Changing arguments: saturation
# Reduces fill color saturation without making the object transparent
dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
theme_minimal_y() |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_bar(saturation = 0.3)
# Changing arguments: accuracy
dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_value(accuracy = 1)
# Changing arguments: fontsize
dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_value(fontsize = 10)
# Changing arguments: color
dinosaurs |>
tidyplot(x = time_lived, color = time_lived) |>
adjust_x_axis(rotate_labels = TRUE) |>
add_count_value(color = "black")
Run the code above in your browser using DataLab