Description Usage Arguments Value See Also Examples
plot many profiles or aggregate profiles on one plot
1 2 | plot_profiles(profiles, labels, title = NULL, p = plot_ly(),
sections = "shade", sec_opacity = 0.3)
|
profiles |
A list of profiles or aggregate profiles to be plotted.
See |
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 The style options are:
|
sec_opacity |
The opacity of the sections of the profile added to the plot. |
Plotly object.
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
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.