@@ -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
139135ggsave(" ../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" ,
0 commit comments