t
nba <- nba[,2:20]
#Prepe Data: change data from a data frame to a data matrix
nba_matrix <- data.matrix(nba)
#Create Heat Map
nba_heatmap <- heatmap(nba_matrix, Rowv=NA, Colv=NA, col = cm.colors(256),
scale="column", margins=c(5,10))
Karly Harrod
LBNL Summ
ge
> #plot 2 centers
> points(kmSNc2$centers,col = 1:2, pch = 8)
Error in plot.xy(xy.coords(x, y), type = type, ...) :
invalid graphics state
I am have just started using R, so I am most definitely a beginner. Any help
that could be offered would be greatly appreciated.
Thanks,
Karly Harro
2 matches
Mail list logo