I'm an amateur in R language. I have a total data of something in Dataframe.
data <- data.frame(coun =country, tot = total, yr=year)
data <- data[ with(data, order(tot,decreasing = TRUE)),]
rownames(data) <- NULL
head(data)
Output of this chunk.
There is no problem for now. But:
ggplot(data = data, aes(x=tot))+ geom_histogram()
When I typed something to visualize the data, I came across a graph like this:
Output of above code.
The data from the tot column will be visualized in this graph, which will contain nation names on the x-axis.
What should I do, guys?
Thanks in advance!