View source: R/BoneDensityFunctions.R
color_bar | R Documentation |
Produce stand alone color bar
color_bar(
colors,
mini,
maxi,
orientation = "vertical",
breaks,
title = "",
text_size = 11,
plot = TRUE
)
colors |
String |
mini |
Numeric |
maxi |
Numeric |
orientation |
"horizontal" or "vertical" |
breaks |
Numeric vector |
title |
String |
text_size |
Numeric |
plot |
Logical |
ggplot object
colors <- c("darkblue", "blue", "lightblue", "green", "yellow", "red", "pink")
color_bar(colors, 0, 2000, breaks = c(0, 500, 1000, 1500, 2000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.