You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a biplot using ggbiplot. I am almost there; howver, I just cannot seem to add the group names to my biplot. I converted the group column to dataframe and got the above error message. However, if I retain the group column as a vector, I get this error message: "Error in names(ell) <- *vtmp* :
'names' attribute [2] must be the same length as the vector [0]" Rplot.pdf
I am trying to create a biplot using ggbiplot. I am almost there; howver, I just cannot seem to add the group names to my biplot. I converted the group column to dataframe and got the above error message. However, if I retain the group column as a vector, I get this error message: "Error in names(ell) <-
*vtmp*
:'names' attribute [2] must be the same length as the vector [0]"
Rplot.pdf
g <- ggbiplot(pca_vistra_rms, obs.scale = 1, group=vistra.group, var.scale = 1, ellipse = TRUE, circle = TRUE)+ scale_color_discrete(name = '') + theme(legend.direction = 'horizontal', legend.position = 'top')
print(g)
The text was updated successfully, but these errors were encountered: