Help understanding how to make a bar chart using ggplot2
- by celenius
I'm trying to use the bar_geom function of ggplot2, but I can't understand how to use it. I've made a small sample of my code to show what I am trying to do:
library(ggplot2)
# sample data
sampleData = data.frame(
v1=c('a','b','c','d','e', 'f','g', 'h', 'i','j'),
v2=c(1:10)
)
sampleData$Names = data.frame( Names =…