Here are my details:
ind <- c( rep(1, 20), rep (2, 20), rep (3, 20), rep(4, 20)) bar <- c(rep(rep(1:4, each = 5), 4)) mark <- c(rep ("A", 5), rep("B", 5), rep("C",5), rep("D",5), rep("B", 20), rep("C", 20), "A", "B", "C", "A", "C","A", "D", "D", "D", "D","A", "C", "C", "A", "B", "B","B", "C","C","C") dataf <- data.frame(ind, bar, mark)
Each individual (ind) has 4 bars in order and is colored. There should be more space between people. I can have any number of people. The next expected graph drawn in excel, I want to instead create a more beautiful graph in R.

Note that each ind level (1: 4) is equal to four bars (1: 4). All four bars for each index are grouped in one place.