我有一个轮盘模拟,绘制频率与轮盘轮槽(或因子)的图,但我也想查看%相对频率与因子。我如何显示%相对频率而不是频率
black_on_wheel = paste("B", 1:18, sep = "")
red_on_wheel = paste("R", 1:18, sep = "")
roulette_wheel = c(red_on_wheel, black_on_wheel, "0", "00")
simulated_roulette_wheel = sample(roulette_wheel, size=500, replace = TRUE)
plot(rw_runs)
你的代码似乎不完整的。什么是'rw_runs'?你甚至考虑过'table'和'prop.table'吗? – joran