getNLinesSubjectProfile: Get approximately the number of 'lines' in the vertical...

View source: R/miscellaneous.R

getNLinesSubjectProfileR Documentation

Get approximately the number of 'lines' in the vertical direction of a subject profile.

Description

This is extracted from the presence of labels in the y-axis, labels and title in the x-axis, general title and number of lines in the legend. Can be used to specify plot-specific height during the export.

Usage

getNLinesSubjectProfile(gg)

Arguments

gg

ggplot2 object, subset of the output of the subjectProfile[X]Plot function, for a particular subject/module/page.

Value

integer with (approximated) number of lines

Author(s)

Laure Cougnaud


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