Description Usage Arguments Value Examples
Creates different vecotrs of related colors than may be useful for figures
1 |
set |
Character string indicating a set of colors |
Vector of character strings representing the chosen set of colors, in Hex.
1 2 3 4 5 6 7 8 9 10 11 12 13 | plot(0, 0, type="n", xlab="", ylab="", xlim=c(0, 6), ylim=c(7, 0), yaxs="i",
xaxt="n", yaxt="n", xaxs="i")
sex <- db_colors("sex")
points(seq(along=sex), rep(6,length(sex)), pch=21, bg=sex, cex=4)
text(seq(along=sex), rep(5, length(sex)), names(sex))
basic <- db_colors('basic')
points(seq(along=basic), rep(4,length(basic)), pch=21, bg=basic, cex=4)
text(seq(along=basic), rep(3, length(basic)), names(basic))
basic <- db_colors('procare')
points(seq(along=basic), rep(2,length(basic)), pch=21, bg=basic, cex=4)
text(seq(along=basic), rep(1, length(basic)), names(basic))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.