plot_profiles: Plot a many individual profiles

Description Usage Arguments Value See Also Examples

Description

plot many profiles or aggregate profiles on one plot

Usage

1
2
plot_profiles(profiles, labels, title = NULL, p = plot_ly(),
  sections = "shade", sec_opacity = 0.3)

Arguments

profiles

A list of profiles or aggregate profiles to be plotted. See get_profile for a description of profile. See aggregate_profiles for a description of an aggregate profile.

labels

A list of labels of the profiles being plotted.

title

Title of the plot

p

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

sections

Style used to show 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.

Value

Plotly object.

See Also

get_profile for a description of a 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_profile

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
   # Plot two profiles
   profile1 <- get_profile(df, 500, 500, 500)
   profile2 <- get_profile(df, 200, 300, 500)
   plot_profiles(list(profile1, profile2), list("profile 1" "profile 2"))

   # Plot many profiles
   profiles <- get_profiles(df, 200, 300, 500)
   plot_profiles(profiles, names(profiles), sections = "shade")

   # Plot aggregate profiles
   profiles1 <- get_profiles(dfs, 500, 500, 500)
   profiles2 <- get_profiles(df, 200, 300, 500)
   agg_profile1 <- aggregate_profiles(profiles1)
   agg_profile2 <- aggregate_profiles(profiles2)
   plot_profiles(list(agg_profile1, agg_profile2), list("aggregated profile 1",
                "aggregated profile 2"), title = "Aggregate profiles")

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