fplot is anR package made for the easyplotting of distributions.
The problem when it comes to distributions is that we often face avariety of data, each requiring a different type of layout: we don’trepresent the distribution of categorical variables similarly tocontinuous variables, and regarding the latter heavily skewed data mayrequire a special treatment. The aim offplot is toautomatically make choices for the user in order to always displaymeaningful (and hopefully beautiful!) graphs.
This brief description shows a gallery offplotpossibilities. For a more detailed introduction, please see thewalk-through.
The data sets used areus_pub_econ (fromfplot) relating to publications in economics from USinstitutions,trade (from packagefixest)relating to trade value between countries for some products in theEuropean Union, and theiris data set (from baseR).
One aim offplotis to easily export graphs, it thereforeincludes a tool to relabel the variable namesglobally (onceand for all). The following line is run before plotting the graphs:
setFplot_dict(c(Origin = "Exporting Country", Destination = "Importing Country", Euros = "Exports Value in €", jnl_top_25p = "Pub. in Top 25% journal", jnl_top_5p = "Publications in Top 5% journal", journal = "Journal", institution = "U.S. Institution", Petal.Length = "Petal Length"))The code to run the plots are in the titles of the graphs. You’llnotice that the same command line can result in a set of differentgraphs.




















