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

testAlpha

Test Various Alpha Transparency Values


Description

Display how the alpha transparency for rgb() varies.

Usage

testAlpha(alpha=seq(0,1,len=25), fg="blue", bg="yellow",
      border="black", grid=FALSE, ...)

Arguments

alpha

numeric vector of alpha transparency values values from 0 to 1.

fg

foreground colour of the top shape that varies in transparency.

bg

background colour (remains constant) of the underlying shape.

border

border colour (which also changes in transparency) of the foreground polygon.

grid

logical: if TRUE, lay a grey grid on the background colour.

...

additional graphical arguments to send to the the ploting functions.

Value

Invisibly returns the compound RGB matrix for fg, alpha, bg, and border.

Author(s)

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

See Also


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.