commit | ce5ee4192b8bff03d556426ae2e1d0b8642580d3 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Oct 23 01:14:38 2017 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Oct 23 01:14:38 2017 -0400 |
tree | b99231a2565a85e87de05dd74f8304574c289b0a | |
parent | 44f6c49393f4d167790135e871afe3498d66a243 [diff] [blame] |
update documentation
diff --git a/R/spec_tools.R b/R/spec_tools.R index 03b2539..f8545d4 100644 --- a/R/spec_tools.R +++ b/R/spec_tools.R
@@ -44,7 +44,7 @@ #' @param end Largest font size. Default is 20. #' @param na_font_size font size for NA values #' @export -spec_font_size <- function(x, begin = 10, end = 20, na_font_size = "inherit") { +spec_font_size <- function(x, begin = 8, end = 16, na_font_size = 12) { x <- round(rescale(x, c(begin, end))) x[is.na(x)] <- na_font_size return(x)