So I made the graph "Most popular age group" and I found out that the age '26-35' is the most popular and now I am trying to look into what 'gender' they are comprised of and make another bar plot out of it.
filename <- read.csv("./XYZ.csv")
myData = filename
install.packages("ggplot")
library(ggplot2)
table(myData$Age)
barplot(table(myData$Age),xlab="Age group", ylab = 'Number of Purchases', main ='Most popular age group', col = 'pink',)