Skip to content

Commit 4a6094d

Browse files
committed
πŸ’„ minor cosmetics
1 parent dd9eef2 commit 4a6094d

4 files changed

Lines changed: 2 additions & 7 deletions

File tree

β€Žcode/Topology.Rβ€Ž

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ ggplot(loadings_df, aes(x = CV1, y = CV2)) +
9090
colour = "#A5ACAF") +
9191
geom_vline(xintercept = 0,
9292
colour = "#A5ACAF") +
93-
geom_hline(yintercept = 0, linetype = "dashed", color = "grey") +
94-
geom_vline(xintercept = 0, linetype = "dashed", color = "grey") +
9593
geom_segment(aes(x = 0, y = 0, xend = CV1, yend = CV2, color = Level),
9694
arrow = arrow(length = unit(0.2, "cm")), linewidth = 1) +
9795
geom_text_repel(aes(label = Metric)) +
@@ -117,15 +115,13 @@ plot_lda <- data.frame(
117115
lda = lda_scores
118116
)
119117

120-
lda_topo_build <-
121-
ggplot(scores_centered, aes(x = Can1, y = Can2,
118+
ggplot(scores_centered, aes(x = Can1, y = Can2,
122119
fill = model, colour = model)) +
123120
geom_hline(yintercept = 0,
124121
colour = "#A5ACAF") +
125122
geom_vline(xintercept = 0,
126123
colour = "#A5ACAF") +
127124
geom_point(alpha = 0.7, size = 2.5,
128-
colour = "white",
129125
shape = 21) +
130126
stat_ellipse(level = 0.95, linetype = 4,
131127
show.legend = FALSE) +
@@ -137,7 +133,6 @@ lda_topo_build <-
137133
figure_theme
138134

139135
ggsave("../figures/cv.png",
140-
lda_topo_build,
141136
width = 5000,
142137
height = 4000,
143138
units = "px",
@@ -171,7 +166,7 @@ lda_topo_build <-
171166
geom_vline(xintercept = 0,
172167
colour = "#A5ACAF") +
173168
stat_ellipse(level = 0.95, linetype = 2) +
174-
geom_point(alpha = 0.6, size = 2) +
169+
geom_point(alpha = 0.6, size = 2.5) +
175170
scale_colour_manual(values = model_colours) +
176171
labs(x = "LD1 (distance from niche)",
177172
y = "LD2",

β€Žfigures/cv.pngβ€Ž

338 KB
Loading

β€Žfigures/lda.pngβ€Ž

143 KB
Loading

β€Žfigures/lda_corr.pngβ€Ž

-1.48 KB
Loading

0 commit comments

Comments
Β (0)