I have data such as this:
yr X lower upper
1 2004 0.2852 0.3927 0.1888
2 2005 0.3710 0.2385 0.5093
3 2006 0.3297 0.2177 0.4557
4 2007 0.2230 0.1424 0.3138
5 2008 0.3028 0.1952 0.4237
6 2009 0.3906 0.2798 0.5226
7 2010 0.3382 0.2343 0.4467
Here is some reproducible data:
dt <- structure(list(yr = 2004:2010, X = c(0.2852, 0.371, 0.3297, 0.223, 0.3028, 0.3906, 0.3382), lower = c(0.3927, 0.2385, 0.2177, 0.1424, 0.1952, 0.2798, 0.2343), upper = c(0.1888, 0.5093, 0.4557, 0.3138, 0.4237, 0.5226, 0.4467)), .Names = c("yr", "X", "lower", "upper"), class = "data.frame", row.names = c(NA, -7L))
I would like to plot this, and the results will go in a presentation, so I would like to make it look as nice as possible – I’m sorry to use the subjective “nice” but I don’t know how else to say it ! I have tried this:
library(ggplot2)
ggplot(dt, aes(x=yr, y=X, group=1)) +
geom_line() +
geom_errorbar(width=.1, aes(ymin=lower, ymax=upper)) +
geom_point(shape=21, size=3, fill="blue") +
ylim(0,0.6)
But I don’t like the results – it just seems to plain and boring:

You could use a ribbon instead of the errorbars