I have a data set that lists the Top 10 web visitors. It has CustID
and Visits
columns. I am trying to plot a bar chart. I made the horizontal axis=True. I want the Yaxis labels to list top 10 custID
from the data - so that for every new dataset the Y axis label value change.
So far, I am using this code:
barplot(WebPages$visits,
main="Top Visitors",
horiz=TRUE,
col="dark blue")
How do I set the Yaxis labels to give the top 10 custID
from the data?