# Exportation example
# The functions pdf_fit, png_fit, etc, guarantee the right
# point size of the texts present in the graph.
# But you must give the exact size the graph will take in your final document.
# => first use the function setFplot_page, default is:
# setFplot_page(page = "us", margins = "normal")
# By default the graph takes 100% of the text width
data(us_pub_econ)
tmpFile = file.path(tempdir(), "DISTR -- institutions.png")
png_fit(tmpFile)
plot_distr(~institution, us_pub_econ)
fit.off()
# What's the consequence of increasing the point size of the text?
png_fit(tmpFile, pt = 15)
plot_distr(~institution, us_pub_econ)
fit.off()
Run the code above in your browser using DataLab