mobvis_settings: Settings of mobvis

View source: R/mobvis_settings.R

mobvis_settingsR Documentation

Settings of mobvis

Description

Settings of mobvis. The default values of mobvis_settings are aimed for interactive maps, whereas the values for mobvis_settings_static are aimed for statis maps.

Usage

mobvis_settings(
  titles = c(dBm = "Signal strength in dBm", s = "Signal dominance - s", bsm =
    "Best server map", pg = "Prior - P(g)", pag = "Connection likelihood - P(a|g)", pga =
    "Location posterior - P(g|a)"),
  palettes = list(dBm = "YlGnBu", s = "YlGnBu", bsm = "Set2", pg = "YlGnBu", pag =
    "YlGn", pga = "YlOrBr"),
  palette = "YlGnBu",
  style = "pretty",
  cell_colors = c(Selected = "red", `Small cell` = "black", `Normal cell` = "black"),
  cell_size = 0.5,
  cell_shape = 19,
  cell_lwd = 1,
  cell_border_col = "black",
  cell_connection_col = "grey50",
  cell_offset = 75,
  cell_legend = FALSE,
  cell_labels = FALSE,
  cell_label_color = "black",
  region.lwd = 3,
  dev_size = 0.5,
  dev_color = "purple",
  dev_shape = 15,
  use_classes = TRUE,
  dBm_classes = list(breaks = c(-Inf, seq(-120, -70, by = 10), Inf), labels =
    c("-120 or less", "-120 to -110", "-110 to -100", "-100 to -90", "-90 to -80",
    "-80 to -70", "-70 or better"), colors = RColorBrewer::brewer.pal(7, "Spectral"),
    lims = c(-120, -70), tit = "Signal strength (dBm)"),
  s_classes = list(breaks = seq(0, 1, by = 0.1), labels = paste(sprintf("%.1f", seq(0,
    1, by = 0.1)[1:10]), "to", sprintf("%.1f", seq(0, 1, by = 0.1)[2:11])), colors =
    RColorBrewer::brewer.pal(10, "Spectral"), lims = c(0, 1)),
  prob_th = NA,
  bg.color = "grey90",
  basemaps = "OpenStreetMap"
)

mobvis_settings_interactive(
  palettes = list(dBm = "YlGnBu", s = "YlGnBu", bsm = "ColorBrewer", pg = "YlGnBu", pag
    = "YlGn", pga = "YlOrBr"),
  cell_colors = c(Selected = "red", `Small cell` = "goldenrod3", `Normal cell` =
    "gold"),
  cell_offset = 150,
  cell_legend = TRUE,
  region.lwd = 2,
  prob_th = 0,
  ...
)

mobvis_settings_animation(style = "cont", ...)

Arguments

titles

default titles. Named character vector, where the names should be dBm, s, bsm, pag, pg and pga.

palettes

default palettes. Should be a list with the elements called: dBm, s, bsm, pag, pg and pga. The options for each palette are: a vector of colors, a ColorBrewer name, a viridis name (see palette_explorer). For "bsm" there are three more options: "hcl", "rainbow", and "ColorBrewer". The last option refers to several ColorBrewer palettes combined.

palette

default palette for non-standard plots

style

the style of the color classes, e.g. "pretty" for pretty rounded breaks, and "cont" for continuous classes. See the style argument of tm_raster for all options.

cell_colors

either a single color for all cells, or a vector of colors named: Selected, Small cell and Normal cell

cell_size

size of the cell(s)

cell_shape

shape of the cell(s), by default a dot. Run the last example from tm_symbols to see all options.

cell_lwd

border line width of the cells, and the lines that connect directional cells when cell_offset > 0

cell_border_col

line color for the cell borders

cell_connection_col

line color for the cell connection lines between directional cells when cell_offset > 0

cell_offset

offset of the cell(s). If not 0, the cells are moved into the propagation direction

cell_legend

should the legend for the different cells be included?

cell_labels

logical that determines whether the cell labels are printed (default FALSE)

cell_label_color

color of the cell labels

region.lwd

line width of the region borders

dev_size

size of the device(s)

dev_color

color of the device(s)

dev_shape

shape of the device(s)

use_classes

logical that determines whether the signal strength (dBm) and dominance (s) should be plot in classes (default) or using a sequential palette. The classes are defined by dBm_classes and s_classes

dBm_classes

list that defines the classes for the signal strength

s_classes

list that defines the classes for the signal dominance

prob_th

probability threshold, i.e. tiles with probabilities lower than prob_th are not colored. By default 1e-06 for interactive maps and NA otherwise, meaning that all tiles are colored.

bg.color

background color (for static maps only)

basemaps

basemap(s) for interactive maps (see leaflet::providers and https://leaflet-extras.github.io/leaflet-providers/preview/ for options). It can also be a vector of basemaps. In that case, the user can switch between them. If the CRS is missing in the spatial objects, the basemaps are turned off.

...

passed on to mobvis_settings


MobilePhoneESSnetBigData/mobvis documentation built on Feb. 3, 2024, 2:49 p.m.