Elaborating on @r2evans's comment, here's barplot
:
par(mar = c(4, 7, 4, 2)) ## This sets the left margin wider
barplot(mydf$Quality.of.life.index, ## The vector of values you want to plot
names.arg=mydf$Country, ## The labels
horiz=TRUE, las = 1) ## Horizontal bars and labels
This is assuming the following starting data:
mydf <- data.frame(
Country = c("Switzerland", "United States", "Germany", "Sweden"),
Quality.of.life.index = c(206.23, 195.55, 192.69, 180.92))
mydf
# Country Quality.of.life.index
# 1 Switzerland 206.23
# 2 United States 195.55
# 3 Germany 192.69
# 4 Sweden 180.92