Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
马赛克图或脊柱图的宽度取决于该 bin 中的数据数量,例如:
library(vcd) mosaic(HairEyeColor, shade=TRUE, legend=TRUE)
反正有没有禁用这个?
使用 prop.table 然后 barplot :
条形图(t(prop.table(M,1)))