set.seed(60427)
# \donttest{
ln_plot_dist("Hemoglobin")
# Plot only females
ln_plot_dist("Creatinine", sex = "female", ylim = c(0, 2))
# Set the ylim
ln_plot_dist("BMI", ylim = c(8, 50))
# Project the distribution of three Hemoglobin values
ln_plot_dist("Hemoglobin", patients = dplyr::sample_n(hemoglobin_data, 3))
# Change the quantiles
ln_plot_dist("Hemoglobin",
quantiles = seq(0.05, 0.95, length.out = 10)
)
# Change the colors
ln_plot_dist(
"Hemoglobin",
quantiles = c(0.03, 0.1, 0.25, 0.5, 0.75, 0.9, 0.97),
pal = c("red", "orange", "yellow", "green", "blue", "purple")
)
# Change the reference distribution
ln_plot_dist("Hemoglobin", reference = "UKBB")
# }
# on the demo data
# \dontshow{
p <- ln_plot_dist("Hemoglobin", reference = "Clalit-demo")
# }
Run the code above in your browser using DataLab