plot_profile: Plot a single profile

Description Usage Arguments Value See Also Examples

Description

plot single profiles individually or add to existing plot

Usage

1
2
3
plot_profile(profile, label, title = NULL, color = get_color(0),
  p = plot_ly(), sections = "shade", sec_opacity = 0.3,
  ribbon_opactiy = 0.4)

Arguments

profile

Profile or aggregate profile to be plotted. See get_profile for a description of profile. See aggregate_profiles for a description of an aggregate profile.

label

Label of the profile being plotted

title

Title of the plot

color

Color of the profile added to the plot.

p

Plot to be added to, if none provided a new plot will be created.

sections

Style used to plot sections of the profile. See get_profile for description of profile sections.

The style options are:

  • "shade" : shade the background of the different sections different colors

  • "lines" : add lines to separate the different sections

sec_opacity

The opacity of the sections of the profile added to the plot.

ribbon_opacity

The opacity of standard deviation ribbon when plotting aggregate profile. See aggregate_profiles for a description of an aggregate profile.

Value

Plotly object.

See Also

get_profile for a description of profile. aggregate_profiles for a description of an aggregate profile.

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

Examples

1
2
3
4
5
6
7
8
   profile1 <- get_profile(df, 500, 500, 500)
   p <- plot_profile(profile1, "profile 1", title = "Great Profiles")
   profile2 <- get_profile(df, 200, 300, 500)
   plot_profile(profile2, "profile 2", p = p)

   profiles <- get_profiles(dfs, 500, 500, 500)
   agg_profile <- aggregate_profiles(profiles)
   plot_profile(agg_profile, "aggregated profile", ribbon_opacity = 0.2)

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