ggplot_circ: Plot the circularity distribution

Description Usage Arguments Value Examples

Description

Make a ggplot2 plot of the traditional circularity distribution

Usage

1
2
ggplot_circ(circ, bin_width, title, xlab, ylab = "Counts",
  base_txt_pts = 12)

Arguments

circ

vector - Containing the circularity

bin_width

number - The width of the bin for the circularity histogram

title

String - A title for the plot

xlab

String - the label for the x axis, e.g. "diameter [nm]"

ylab

String - the y label. Default = "Counts"

base_txt_pts

String - the size in points. Default 12.

Value

plt

Examples

1
2
3
4
library(particlesizeR)
# simulate a distribution
vec1 <- rnorm(1000, mean=0.90, sd=.05)
ggplot_circ(vec1, 0.01, "Circularity distribution", "Circularity", "Counts")

jrminter/particlesizeR documentation built on June 5, 2019, 11:05 p.m.