Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Aug 3, 2023
1 parent 690382c commit 87c8c9e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
23 changes: 23 additions & 0 deletions R/scales.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,29 @@
#' @param ... Further arguments of [ggplot2::discrete_scale()] or
#' [ggplot2::continuous_scale()].
#'
#' @examples
#' library(ggplot2)
#'
#' set.seed(596)
#' txsamp <- subset(
#' txhousing,
#' city %in% c(
#' "Houston", "Fort Worth",
#' "San Antonio", "Dallas", "Austin"
#' )
#' )
#'
#' ggplot(txsamp, aes(x = sales, y = median)) +
#' geom_point(aes(colour = city)) +
#' scale_color_bde_d() +
#' theme_minimal()
#'
#'
#' ggplot(txsamp, aes(x = sales, y = median)) +
#' geom_point(aes(colour = city)) +
#' scale_color_bde_d("bde_rose_pal") +
#' theme_minimal()
#'
scale_color_bde_d <- function(palette = c("bde_vivid_pal", "bde_rose_pal"),
...) { # nocov start

Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
},
"applicationCategory": "Macroeconomics",
"isPartOf": "https://ropenspain.es/",
"fileSize": "507.164KB",
"fileSize": "508.079KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
24 changes: 24 additions & 0 deletions man/scales_bde.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87c8c9e

Please sign in to comment.