getNLinesLegend: Get number of lines in the legend, either from directly the...

View source: R/miscellaneous.R

getNLinesLegendR Documentation

Get number of lines in the legend, either from directly the ggplot2 object, or from the values of the legend (legendValues) and title (legendTitle)

Description

Get number of lines in the legend, either from directly the ggplot2 object, or from the values of the legend (legendValues) and title (legendTitle)

Usage

getNLinesLegend(gg, values, title)

Arguments

gg

ggplot2 object

values

Vector with unique legend values

title

String, title for the plot.

Value

integer with (approximated) number of lines

Author(s)

Laure Cougnaud


patientProfilesVis documentation built on Nov. 18, 2022, 5:12 p.m.