add_sections: Add section lines and/or shading

Description Usage Arguments Value See Also Examples

Description

add shading or lines to show the sections of a profile for a plot

Usage

1
2
add_sections(p, scale, shade = FALSE, ymin = NULL, ymax = NULL,
  opacity = 0.3)

Arguments

p

Plot to add shading to

scale

The number of data points in each third of the profile. See get_profile for a description of profile and scale.

shade

Add shading of sections or else add lines separating sections

ymin

Minimum value of the y axis

ymax

Maximum value of the y axis

opacity

The opacity of the shading

Value

Ploltly object that has section shading or lines

See Also

get_profile for a description of profile and scale.

Other plotting functions: get_color, get_energy_profiles, min_max_plot, plot_3d_landscape, plot_3d_profiles, plot_active, plot_features_profiles, plot_features_profile, plot_profiles, plot_profile

Examples

1
2
3
   profile <- get_profile(df, 300, 200, 500)
   p <- plot_profile(profile, "the best profile", sections = NULL)
   add_sections(p, scale = 500)

VCCRI/CardiacProfileR documentation built on May 25, 2019, 2:22 p.m.