add_label_to_plot: Add information about critical values to a plot.

Description Usage Arguments Value

Description

This function collects some code that helps place information about critical values to a density plot.

Usage

1
2
add_label_to_plot(.plot, x, y, add_tick = FALSE, label, parse = TRUE,
  vjust = 2, size = 5, colour = "black")

Arguments

.plot

The plot upon which the information should be added.

x

A number that gives the first coordinate of the point where information in .label should be added.

y

A number (default value 0) that gives the second axis coordinate of the point where the information in .label should be added.

add_tick

Logical value, default value FALSE, that can be used to add a "tick" to the plot at the coordinate given by x and y.

label

The text to be used as a label, based at the position given by x and y.

parse

Logical value, default value TRUE, which decides if the text given in label should be parsed.

vjust

A number (default value 2) that governs the vertical adjustment of label relative the value y. Note that this argument is relative to the size-value, and an increase in size might thus require a decrease in vjust in order to get the desired position.

size

The value that governs the size of the text, default value 5.

colour

The colour, default value "black", that will be used for the added details.

Value

An updated version of .plot, where information has been added.


LAJordanger/HVLstatistikk documentation built on June 21, 2019, 7:56 p.m.