我有一个包含4000多个条目的csv中的数据,其中的数据大致如下:
Variant Metric Value
I Accuracy 76.14708
I F-measure 0.87
II Accuracy 76.23548
III Accuracy 76.07839
IV Time 0.56由于指标在不同的尺度上,我无法获得时间和f度量指标的箱形图的正确视图:

R代码如下:
df <- read.csv("NBboxplot.csv", header=T)
require(ggplot2)
p <- ggplot(data = df, aes(x=Variant, y=Value)) +
geom_boxplot(aes(fill=Metric))
p + facet_wrap( ~ Variant, scales="free")对于更好的可视化有什么线索吗?
发布于 2020-03-19 05:41:24
我会将facet更改为Metric,因为它们的规模截然不同:
p <- ggplot(data = df, aes(x=Variant, y=Value)) +
geom_boxplot(aes(fill=Metric)) +
facet_wrap(~Metric, scales="free")https://stackoverflow.com/questions/60747602
复制相似问题