Description Usage Arguments Examples
View source: R/gradient_icon.R
Generates a gradient scale
1 2 3 |
col |
spatialpointsdataframe with the parameters |
labels |
minimum and maximum value |
tdist |
distance of the labels from the gradient scale |
bars |
number of lines in the gradient scale |
title |
title of the gradient scale |
dist |
distance from x and y top corner |
tcol |
color of labels and title |
filename |
the name of the legend_icon when saving as a png, if NULL the png is not exported |
ratio |
height-width ratio |
1 | gradient_icon(col=colorRampPalette(c('grey90','grey20'))(100), labels = c(500,1000), tdist=0.2,bars=10,title=NULL,filename='gradient_icon',res2=30,ratio=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.