I was able to make a nice looking histogram by accidentally using a function “histogram” (e.g., histogram(myvector)) in R. I closed out of R, opened the same script 5 minutes later on the same computer, and now R is telling me no function found. The function hist(), which I usually use, gives a slightly different looking histogram in terms of placement of axis labels and using frequency rather than percent on the y axis.
Just curious!
The mystery
histogramfunction was probably in packagelattice(though there are literally hundreds out there). Did you dolibrary("lattice")in your earlier session?