Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addLabel

Add a Label to a Plot Using Relative (0:1) Coordinates


Description

Place a label in a plot using relative (0:1) coordinates

Usage

addLabel(x, y, txt, ...)

Arguments

x

x-axis coordinate in the range (0:1); can step outside.

y

y-axis coordinate in the range (0:1); can step outside.

txt

desired label at (x,y).

...

additional arguments passed to the function text.

Author(s)

Jon T. Schnute, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC

See Also

Examples

local(envir=.PBSmodEnv,expr={
  oldpar = par(no.readonly=TRUE)
  resetGraph()
  addLabel(0.75,seq(from=0.9,to=0.1,by=-0.10),c('a','b','c'), col="#0033AA")
  par(oldpar)
})

PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.