I'm trying to essentially make a scatter plot where instead of points, the markers are bars that connect the point to the bottom of the graph (like a histogram). My problem is that my graph has something like 30 points and the x-axis labels are smashed together. I tried doing it with Histograms to no avail, and tried doing it with BarChart with a bit more success, but there are so many markers on the x-axis that you can't read them. My problems would be solved if I could specify only a few markers at certain positions. Can anyone help?
It's a good question and something I've dealt with recently when essentially trying to plot a histogram but when I already have the data binned. After using
If we have some samples we can just use
However, if you already have the data points corresponding to the elements of the histogram, as in your case.
Then as you say,
And you can use all the normal plot styling functionality
One way would be like the following. Assume that this is your list:
And here is you histogram-like plot:
looking as follows: