Description Usage Arguments Value Author(s) Examples
Function returns a vector of character strings from a selected MLB team's color palette. The team options are c("diamondbacks", "braves", "orioles", "red_sox", "cubs", "white_sox", "reds", "indians", "rockies", "tigers", "astros", "royals", "angels", "dodgers", "marlins", "brewers", "twins", "mets", "yankees", "athletics", "phillies", "pirates", "padres", "giants", "mariners", "cardinals", "rays", "rangers", "blue_jays", "nationals").
1 2 3 4 5 | mlb.colors(set = c("diamondbacks", "braves", "orioles", "red_sox", "cubs",
"white_sox", "reds", "indians", "rockies", "tigers", "astros", "royals",
"angels", "dodgers", "marlins", "brewers", "twins", "mets", "yankees",
"athletics", "phillies", "pirates", "padres", "giants", "mariners",
"cardinals", "rays", "rangers", "blue_jays", "nationals"))
|
set |
Character string denoting an MLB team's color palette. |
Vector of character strings from the selected MLB team's color palette.
Charles Crabtree ccrabtr@umich.edu
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Colorado Rockies colors
(pal = mlb.colors("rockies"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)
# Seattle Mariners colors
(pal = mlb.colors("mariners"))
pie(rep(1, length(pal)), labels = sprintf("%d (%s)", seq_along(pal), pal), col = pal)
## End(Not run)
|
Purple Black Silver
"#333366" "#231F20" "#C4CED4"
Blue Green Silver
"#0C2C56" "#005C5C" "#C4CED4"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.