r - Reduce size of legend area in barplot -
i can't cut down size of legend in plot. help me out? want appear topright, no more 20% of height of plot area
a <- c(3, 2, 2, 2, 1, 2 ) barplot(a, beside = t, col = 1:6, space = c(0, 2)) legend("topright", legend = c("a", "b", "c", "d", "e", "f"), fill = 1:6, ncol = 2)
the cex
parameter you.
a <- c(3, 2, 2, 2, 1, 2 ) barplot(a, beside = t, col = 1:6, space = c(0, 2)) legend("topright", legend = c("a", "b", "c", "d", "e", "f"), fill = 1:6, ncol = 2, cex = 0.75)
edit: realize lukea has had answered question, i'll leave reply question appears answered.
r plot legend
No comments:
Post a Comment