Entering edit mode

4.8 years ago

mohammedtoufiq91
▴
260

Hi,

I was able to plot the PCA between two different variables using function autoplot() function from ggfortify library. I have a question about how to add the black borders around the circles and triangles as shown in the plot below. Please let me know if there any specific function for adding?

Thank you,

Toufiq

```
## PCA on two variables##
pca_v1 <- prcomp(Node, scale. = TRUE)
autoplot(pca_v1,
data = Neg_Dct, colour = 'Category', shape = 'Response' , size = 3.5) +
theme_classic()
```

Try this code and let us have your comments here: