【问题标题】:mosaic or spine plot with fixed width?固定宽度的马赛克或脊柱图?
【发布时间】:2013-07-12 12:58:39
【问题描述】:

马赛克图或脊柱图的宽度取决于该 bin 中的数据数量,例如:

library(vcd)
mosaic(HairEyeColor, shade=TRUE, legend=TRUE) 

有没有办法禁用它?

【问题讨论】:

    标签: r plot statistics


    【解决方案1】:

    使用 prop.table 然后 barplot :

    条形图(t(prop.table(M,1)))

    【讨论】:

      猜你喜欢
      • 2011-04-15
      • 2016-04-14
      • 2013-01-27
      • 2010-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-09
      相关资源
      最近更新 更多