ScaleBars: Draw scale bars

Description Usage Arguments Value

Description

Draw scale bars

Usage

1
2
3
4
5
6
7
ScaleBars(position = c("bl", "br", "tl", "tr"), xrange, yrange,
  xscale = NULL, yscale = NULL, xunit = "", yunit = "",
  label_format = "%g %s", basesize = 5, linesize = basesize/4)

ApplyScaleBars(p, position = c("bl", "br", "tl", "tr"), xscale = NULL,
  yscale = NULL, xunit = "", yunit = "", label_format = "%g %s",
  basesize = 5, linesize = basesize/4)

Arguments

position

Position to draw scale bars.

xrange

Range of x axis.

yrange

Range of y axis.

xscale

Size of x scale. If is NULL, 1/20 of xrange.

yscale

Size of y scale. If is NULL, 1/20 of yrange.

xunit

Label of x scale bar, if xscale is NULL, used as unit of x instead.

yunit

Label of y scale bar, if yscale is NULL, used as unit of x instead.

label_format

Format string for labeling.

basesize

Base textsize.

linesize

Line size.

p

a ggplot object.

Value

a list of ggplot objects.


Crystal-YWu/abftools documentation built on May 10, 2019, 8:22 a.m.