skip to main | skip to sidebar

方寸之间

2009年12月16日星期三


Draw a scatterplot of age vs. attractiveness, using gender to define the points' colors.(纵横轴以外的变量颜色差别)

R code:> plot(d$age, d$attractive,col = ifelse(d$male, 'blue', 'deeppink'))


发帖者 方寸之间 时间: 14:11

没有评论:

发表评论

较新的博文 较早的博文 主页
订阅: 博文评论 (Atom)

博客归档

  • ►  2010 (3)
    • ►  二月 (3)
  • ▼  2009 (10)
    • ▼  十二月 (10)
      • Economics and voter irrationality: my review of Th...
      • My Five Rules for Data Visualization
      • Must-Have R Packages for Social Scientists
      • Fake-data simulation as a research tool (Andrew Ge...
      • According to Microsoft, the fourth paradigm of sci...
      • Draw a scatterplot of age vs. attractiveness, usin...
      • Statistics is big-N logic?
      • Handy statistical lexicom
      • Are Liberals Smarter Than Conservatives?
      • Linear Regression

我的简介

我的照片
方寸之间
Dublin, Ireland
Though the suspense is killing me,I hope it lasts!
查看我的完整个人资料

我的博客列表

  • Complexity and Social Networks Blog
    -
  • Kenneth Benoit's Home Page
    -
  • FiveThirtyEight: Politics Done Right
    -
  • Zero Intelligence Agents
    -
  • Junk Charts
    -
  • FlowingData
    -
  • The Monkey Cage
    -
  • Applied Statistics
    -
  • Revolutions
    -
  • Freakonomics
    -
  • JaeWeb
    -
  • Statistical Modeling, Causal Inference, and Social Science
    -
  • Social Science Statistics Blog
    -
  • The Quantitative Peace
    -