我有一些这样的数据:
myd <- structure(list(var1 = structure(1:4, .Label = c("II", "III",
"IV", "V"), class = "factor"), zero_co = c(15.15152, 3.030303,
0, 0), non_zero_CO = c(84.84848, 96.969697, 100, 100), size = c(230,
813, 317, 1532)), .Names = c("var1", "zero_co", "non_zero_CO",
"size"), row.names = c(NA, -4L), class = "data.frame")
# myd
# I II III IV V
# zero_co 15.15152 3.030303 0 0
# non-zero CO 84.84848 96.969697 100 100
# size 230.00000 813.000000 317 1532
我想size
在 y 轴和其他两个变量上绘制,zero_co
并在 x 轴上绘制non-zero CO
成堆积条形图。我正在尝试使用但发现困难来绘制gplots
这个ggplots
。我如何绘制这个?