gradient_icon: gradient_icon

Description Usage Arguments Examples

View source: R/gradient_icon.R

Description

Generates a gradient scale

Usage

1
2
3
gradient_icon(col = colorRampPalette(c("grey90", "grey20"))(100),
  labels = c(0, 1), tdist = 0.2, bars = 10, title = NULL,
  dist = c(0.4, 0.2), tcol = "white", filename = NULL, ratio = 0.5)

Arguments

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

Examples

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) 

jedgroev/makekml documentation built on Nov. 4, 2019, 2:36 p.m.