Usage
plot_infectsuscep(graph, toa, t0 = NULL, normalize = TRUE, K = 1L, r = 0.5, expdiscount = FALSE, bins = 20, nlevels = round(bins/2), h = NULL, logscale = TRUE, main = "Distribution of Infectiousness and\nSusceptibility", xlab = "Infectiousness of ego", ylab = "Susceptibility of ego", sub = ifelse(logscale, "(in log-scale)", NA), color.palette = grDevices::colorRampPalette(grDevices::blues9), include.grid = TRUE, exclude.zeros = FALSE, valued = getOption("diffnet.valued", FALSE), ...)
Arguments
toa
Integer vector of length $n$ with the times of adoption.
normalize
Logical scalar. Passed to infection/susceptibility.
K
Integer scalar. Passed to infection/susceptibility.
r
Numeric scalar. Passed to infection/susceptibility.
expdiscount
Logical scalar. Passed to infection/susceptibility.
bins
Integer scalar. Size of the grid ($n$).
h
Numeric vector of length 2. Passed to kde2d
in the MASS package. logscale
Logical scalar. When TRUE the axis of the plot will be presented in log-scale.
main
Character scalar. Title of the graph.
xlab
Character scalar. Title of the x-axis.
ylab
Character scalar. Title of the y-axis.
sub
Character scalar. Subtitle of the graph.
color.palette
a color palette function to be used to assign colors in the plot (see filled.contour
). include.grid
Logical scalar. When TRUE, the grid of the graph is drawn.
exclude.zeros
Logical scalar. When TRUE, observations with zero values
valued
Logical scalar. When FALSE non-zero values in the adjmat are set to one.
in infect or suscept are excluded from the graph. This is done explicitly when logscale=TRUE
.