Thank you, @MLaure19! This is the first step in building what's called a 'reprex', which is ideal way to post questions so folks can help you more easily. (See FAQ: How to do a minimal reproducible example ( reprex ) for beginners for helpful details.) I'll add the assignment to my_table
to make it easier to copy:
my_table <-
structure(list(X = structure(c(1L, 5L, 2L, 4L, 3L), .Label = c("Bresson",
"Claix ", "Corenc", "Coteau", "Plaine "), class = "factor"),
X8.5 = c(1L, 0L, 0L, 1L, 0L), X8.6 = c(8L, 0L, 0L, 2L, 1L
), X8.7 = c(2L, 1L, 0L, 1L, 2L), X8.8 = c(0L, 2L, 0L, 0L,
1L), X8.9 = c(0L, 1L, 1L, 0L, 0L), X9 = c(0L, 0L, 3L, 0L,
0L), X9.1 = c(0L, 0L, 1L, 0L, 0L)), row.names = c(NA, 5L), class = "data.frame")
Is this all the data you're working with? It seems quite small to require a histogram -- could you say what you need it for? That might help folks understand your context better.