Add histogram to existing plot
Add histogram at pleace of legend using colors from 'colorRamp'.
legendHist( x, colRamp = NULL, location = "bottomright", legTit = NULL, cex = 0.7, srt = 67, offS = NULL, border = TRUE, silent = FALSE, callFrom = NULL )
x |
(numeric) main input/component of plot |
colRamp |
(character or integer) set of colors, default is rainbow-like |
location |
(character) for location of histogram inside existing plot (may be 'br','bl','tl','tr','bottomright', 'bottomleft','topleft','topright') |
legTit |
(character, length=1) optional title for histogram-insert |
cex |
(numeric) expansion factor (see also |
srt |
(numeric) angle for histogram text labels (90 will give vertical label) (see also |
offS |
( |
border |
(logical) decide of draw gray rectangle or not around legend |
silent |
(logical) suppress messages |
callFrom |
(character) allow easier tracking of message(s) produced |
figure
dat <- rnorm(90); plot(dat) legendHist(dat, col=1:5)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.