This auxiliary function plots discrete and continuous values results
This auxiliary function plots discrete and continuous values results
plot_chord(
origin,
dest,
weight = 1,
mg = 3,
title = "Chord Diagram",
subtitle = "",
pal = NA
)plot_chord(
origin,
dest,
weight = 1,
mg = 3,
title = "Chord Diagram",
subtitle = "",
pal = NA
)
Vectors. Origin and destination vectors
Vector. Weight for each chord.
Numeric. Margin adjust for plot in case of need
Character. Title for the plot
Character. Subtitle for the plot
Vector. Colour pallete. Order matters.
chordDiagram object
chordDiagram object
Other Visualization:
distr()
,
freqs_df()
,
freqs_list()
,
freqs_plot()
,
freqs()
,
gg_bars()
,
gg_pie()
,
noPlot()
,
plot_survey()
,
plot_timeline()
,
theme_lares()
,
tree_var()
Other Visualization:
distr()
,
freqs_df()
,
freqs_list()
,
freqs_plot()
,
freqs()
,
gg_bars()
,
gg_pie()
,
noPlot()
,
plot_survey()
,
plot_timeline()
,
theme_lares()
,
tree_var()
# NOT RUN {
# You must have "circlize" library to use this auxiliary function:
# }
# NOT RUN {
df <- data.frame(from = c(1, 1, 2, 3, 4, 1, 6), to = c(4, 4, 4, 2, 2, NA, NA))
plot_chord(df$from, df$to)
# }
# NOT RUN {
# You must have "circlize" library to use this auxiliary function:
# }
# NOT RUN {
df <- data.frame(from = c(1, 1, 2, 3, 4, 1, 6), to = c(4, 4, 4, 2, 2, NA, NA))
plot_chord(df$from, df$to)
# }
Run the code above in your browser using DataLab