Gregorio Alanis-Lobato
A very simple set of functions to generate power-law distributed data and to plot continuous and discrete power law distributions.
- Install the
devtools
package from CRAN if you haven't done so:
install.packages("devtools")
- Load the
devtools
package:
library("devtools")
- Install
PowerLawPlots
using theinstall_github
function:
install_github("galanisl/PowerLawPlots")
To start using PowerLawPlots
, load the package:
library("PowerLawPlots")
To use the main two functions, check the documentation as follows:
?plot_pl_pdf
?plot_pl_cdf