When I run the following codes in R,
library(mclust)
data(iris)
mc <- Mclust(iris[,1:4], 3)
plot(mc, data=iris[,1:4], what="classification",dimens=c(3,4))
table(iris$Species, mc$classification)
I got an error meesage for the plot:
Error in coordProj(data = data, what = "classification", parameters = object$parameters, :
formal argument "data" matched by multiple actual arguments
I am not sure what went wrong with the data subset data=iris[,1:4]. Any suggestions? Thanks!
How about deleting the data= and leaving