draw_geom_triangles_height_legend: Draw geom_triangle legend based on its height (z)

Description Usage Examples

Description

Draw geom_triangle legend based on its height (z)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
draw_geom_triangles_height_legend(
  width = 1,
  width_scale = 0.1,
  height_scale = 0.1,
  z_values = 1:3,
  n.breaks = 3,
  labels = c("low", "medium", "high"),
  color = "black",
  fill = "black"
)

Examples

1
2
3
4
5
6
7
8
draw_geom_triangles_height_legend()

draw_geom_triangles_height_legend(
width = c(min(mtcars$cyl),median(mtcars$cyl), max(mtcars$cyl)),
labels = c(min(mtcars$cyl),median(mtcars$cyl), max(mtcars$cyl)),
) +
ggtitle("Cylinders") +
theme(plot.title = element_text(hjust = 0.5))

ctesta01/ggtriangles documentation built on Feb. 14, 2022, 5:57 p.m.