r:social_network_analysis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
r:social_network_analysis [2019/12/03 16:09] – [triad_data1.csv] hkimscil | r:social_network_analysis [2019/12/03 16:11] – [Triad Data Visualizations] hkimscil | ||
---|---|---|---|
Line 135: | Line 135: | ||
====== Triad Data Visualizations ====== | ====== Triad Data Visualizations ====== | ||
- | ===== triad_data1.csv | + | ===== Analysis (vis) ===== |
< | < | ||
library(ggplot2) | library(ggplot2) | ||
Line 169: | Line 169: | ||
</ | </ | ||
+ | < | ||
+ | ggtern(data=demodata1, | ||
+ | geom_density_tern() | ||
+ | |||
+ | ggtern(data=demodata1, | ||
+ | geom_density_tern(aes(fill=..level.., | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | #Or you can apply a color gradient to space between the contour lines | ||
+ | ggtern(data=demodata1, | ||
+ | stat_density_tern(aes(fill=..level.., | ||
+ | scale_fill_gradient2(high = " | ||
+ | guides(color = " | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== triad_data1.csv ===== | ||
<file csv triad_data1.csv> | <file csv triad_data1.csv> | ||
ObsID, | ObsID, |
r/social_network_analysis.txt · Last modified: 2023/11/22 22:02 by hkimscil