教你快速的使用ggplot2畫熱圖

1.導入須要的packagescss library(ggplot2) require(reshape2) require(scales) 2.導入數據:web nba <- read.csv("http://datasets.flowingdata.com/ppg2008.csv") nba$Name <- with(nba, reorder(Name, PTS)) > head(nba)
相關文章
相關標籤/搜索