We are having problems with not being able to remove labels from the dots on the PCA plot.
I figured out how to at least shorten the labels, so it doesn’t look quite as bad, but I followed the PCAviz program 'help' manual instructions for removing the labels on the plot and it didn’t work. For some reason, adding the shortened labels works but removing them completely doesn’t.
According to the PCAviz manual instructions, it seems like we are just supposed to add in
but it still just draws the full-length labels anyway. However, our code does work for shortened labels, just not getting rid of them altogether (see plot and entire .R code attached):
We are having problems with not being able to remove labels from the dots on the PCA plot.
I figured out how to at least shorten the labels, so it doesn’t look quite as bad, but I followed the PCAviz program 'help' manual instructions for removing the labels on the plot and it didn’t work. For some reason, adding the shortened labels works but removing them completely doesn’t.
According to the PCAviz manual instructions, it seems like we are just supposed to add in
draw.points = TRUE, label = NULL
to the
plot1 <- plot(SGDP, coords = paste0(“PC”, c(1, 2)), color = “popID”, draw.points = TRUE, label = NULL, geom.point.summary.params = geom.point.summary.params, scale.pc.axes = 0.6)
but it still just draws the full-length labels anyway. However, our code does work for shortened labels, just not getting rid of them altogether (see plot and entire .R code attached):
plot1 <- plot(SGDP, coords = paste0(“PC”, c(1, 2)), color = “popID”, draw.points = TRUE, label = “popID.abbrv”, geom.point.summary.params = geom.point.summary.params, scale.pc.axes = 0.6)
Any advice or code you can provide would we appreciated!
Here is our entire .R code: