dist.plot: Distribution plot

View source: R/plots.R

dist.plotR Documentation

Distribution plot

Description

Creates a sorted line plot

Usage

dist.plot(
  x,
  decreasing = TRUE,
  sort = TRUE,
  navn = substitute(x),
  mean = FALSE,
  linecolor = "darkblue",
  rug = FALSE,
  area = TRUE,
  plf = FALSE,
  ...
)

Arguments

x

a numerical vector

decreasing

if TRUE values are sorted from highest to lowest

sort

if TRUE values are sorted

navn

the plot title

mean

if TRUE annotates the mean on the plot

linecolor

the color of the line

rug

if TRUE adds "rugs" to the plot

area

if TRUE colors the area below the line

plf

if TRUE fits a power law on the distribution, see power.law.fit

Value

a ggplot2


antongrau/eliter documentation built on March 2, 2024, 8:05 p.m.