fmcirkelkort: fmcirkelkort

Description Usage Arguments Value Examples

View source: R/fmcirkelkort.R

Description

fmcirkelkort

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
fmcirkelkort(
  data,
  lat,
  lon,
  label = NULL,
  radius = 10,
  color = NULL,
  scale = "factor",
  bins = 7,
  alpha = 0.3,
  dot = TRUE,
  textsize = "11px",
  legend = FALSE,
  output = NULL,
  background = rgb(249/255, 248/255, 224/255),
  filetype = ".png",
  farver = NULL
)

Arguments

data

Choose the data frame

lat

The name of the column in the data with the latitude coordinates.

lon

The name of the column in the data with the longitude coordinates.

label

Adds a lable to the to the center of the circle. Should be specified as a name of one of the columns of the data.

radius

The radius of the circles on the map (in meters). If a numerical value is chosen, all circles will have the same radius. If a string is chosen, the column in the data with the name of the string will be chosen. The radius of the circles will be equal to the number in the chosen column. The column must contain numeric values. Defalut is 30000 meters.

color

A string equal to a column name in the data. If specified, the circles will have different colors.

scale

The type of the scale for the colors (if color is specified). Can be either 'factor', 'numeric', bin.num' or 'bin.cat'

bins

The number of bins if 'bin' is specified in scale.

alpha

The transparency of the circle. [0,1].

dot

Shold the middle of the circle have a dot (TRUE/FALSE, default = TRUE)

textsize

The textsize of the label. Default is "11px".

legend

Add a legend to the graph

output

The name of the output (a .png file). If not specified, not outcome will b exported.

background

Choose the background color

filetype

Choose the file type of the output file ("png" (= defalut), "pdf" or ".jpeg")

farver

A character vector containing colors. (default = FM colors)

Value

A map of Denmark with circles on

Examples

1
2
3
4
## Not run: 
fmcirkelkort()

## End(Not run)

August-Emil/fmkort documentation built on June 7, 2020, 7:16 a.m.