cex

How to translate point size in cex into units of plot in R

烂漫一生 提交于 2021-02-10 17:57:53
问题 I try to figure out how big the radii of the points in my plot in x and y direction are going to be, with their size being set by cex . I want to create a plotting function which needs this information. It appears to me as if cex would be this magical parameter and nobody actually knows what exactly it is going to do. I am creating a plot with the png function. I set a graph width and height. I set par(mar) and par(oma) . I plot an empty plot with an xlim and ylim being set, and add an

Point color and symbol size based on different variables in mapview

跟風遠走 提交于 2019-12-24 00:03:06
问题 I'm trying for a divergent scale theme in mapview to help visualize gains vs. losses, with: point symbol circle sizes on an absolute value scale (to highlight losses as much as gains) a divergent color scale fill for the circles (say dark blue>blue>white>red>dark red for most negative>negative>zero>positive>largest) mouse over hover label of the original value retained any ideas? library(tidyverse) library(mapview) library(sf) lat <- rep(34,16) lon <- seq(-128, -126, length = 16) value <- c(