【发布时间】:2021-01-09 05:19:20
【问题描述】:
具体来说:解释变量位于底部,x 轴位于右侧,响应变量位于右侧,相对频率位于左侧,y 轴位于左侧。我将在下面附上我的 R 代码。
mosaictable <- matrix (c (3, 9, 22, 21), byrow = T, ncol = 2)
rownames (mosaictable) = c ("White", "Blue ")
colnames (mosaictable) = c ("Captured", "Not Captured")
mosaicplot ((mosaictable), sub = "Pigeon Color", ylab = "Relative frequency",
col = c ("firebrick", "goldenrod1"), font = 2, main = "Mosaic Plot of Pigeon Color and Their Capture Rate"
)
axis (1)
axis (4)
【问题讨论】:
标签: r mosaic-plot