library(ggplot2) df <- read.csv("/tmp/simpletest.csv") ggplot(df[df$callee == "main()" & df$metric %in% c("pmu", "mu"), ], aes(callee, value/1024/1024, colour = metric)) + geom_boxplot() + coord_flip()