Created
August 13, 2012 02:20
-
-
Save xccds/3336476 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(treemap) | |
data <- read.csv('d:/olympic.csv',T) | |
tmPlot(data, | |
index=c("sports", "events"), | |
vSize="gold", | |
vColor="china", | |
type="value", | |
title='中国奥运金牌分布', | |
fontsize.labels=13, | |
lowerbound.cex.labels=0.7, | |
palette="-RdGy") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment