powered by
Suggests a alpha opacity to plot with as a function of the number of observation.
linear_tform(n, appox_max_n = 5000, ceiling = 1, floor = 0.3)
A scalar numeric, suggested value to set alpha opacity.
Number of observations to plot.
The number of observation to reach floor opacity.
The highest number returned. Defaults to 1.
The lowest number returned. Defaults to 0.3.
Other cheem utility: as_logical_index(), color_scale_of(), contains_nonnumeric(), is_discrete(), is_diverging(), logistic_tform(), problem_type(), sug_basis(), sug_manip_var()
as_logical_index()
color_scale_of()
contains_nonnumeric()
is_discrete()
is_diverging()
logistic_tform()
problem_type()
sug_basis()
sug_manip_var()
library(cheem) ## Suggest an opacity to use in plotting: (my_alpha <- linear_tform(nrow(spinifex::penguins_na.rm))) ## Visualize x <- 1:2000 plot(x, sapply(x, linear_tform), col = "blue")
Run the code above in your browser using DataLab