I used the information from this post to create a histogram with logarithmic scale:
Histogram with Logarithmic Scale
However, the output from plot looks nothing like the output from hist. Does anyone know how to configure the output from plot to resemble the output from hist? Thanks for the help.
A simplified, reproducible version of the linked answer is
To get the axes looking more “hist-like”, replace the last line with
Getting the bars to join up is going to be a nightmare using this method. I suggest using trial and error with values of
lwd(in this example, 34 is somewhere close to looking right), or learning to uselatticeorggplot.EDIT:
You can’t set a border colour, because the bars aren’t really rectangles – they are just fat lines. We can fake the border effect by drawing slightly thinner lines over the top. The updated code is