Gregorio Alanis-Lobato
A very simple set of functions to generate power-law distributed data and to plot continuous and discrete power law distributions.
devtools
package from CRAN if you haven't done so:install.packages("devtools")
devtools
package:library("devtools")
PowerLawPlots
using the install_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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.