Skip to content

Commit

Permalink
Change default theme font from Helvetica back to ""
Browse files Browse the repository at this point in the history
This fixes warnings on computers without Helvetica
  • Loading branch information
wch committed Aug 29, 2012
1 parent 58a0114 commit c6bc17e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/theme-defaults.r
Expand Up @@ -4,7 +4,7 @@
#' @param base_family base font family
#' @aliases theme_gray theme_grey
#' @export theme_gray theme_grey
theme_grey <- function(base_size = 12, base_family = "Helvetica") {
theme_grey <- function(base_size = 12, base_family = "") {
theme(
# Elements in this first block aren't used directly, but are inherited
# by others
Expand Down Expand Up @@ -66,7 +66,7 @@ theme_gray <- theme_grey
#' @param base_size base font size
#' @param base_family base font family
#' @export
theme_bw <- function(base_size = 12, base_family = "Helvetica") {
theme_bw <- function(base_size = 12, base_family = "") {
# Starts with theme_grey and then modify some parts
theme_grey(base_size = base_size, base_family = base_family) %+replace%
theme(
Expand Down
2 changes: 1 addition & 1 deletion man/theme_bw.Rd
Expand Up @@ -2,7 +2,7 @@
\alias{theme_bw}
\title{A theme with white background and black gridlines.}
\usage{
theme_bw(base_size = 12, base_family = "Helvetica")
theme_bw(base_size = 12, base_family = "")
}
\arguments{
\item{base_size}{base font size}
Expand Down
2 changes: 1 addition & 1 deletion man/theme_grey.Rd
Expand Up @@ -3,7 +3,7 @@
\alias{theme_grey}
\title{A theme with grey background and white gridlines.}
\usage{
theme_grey(base_size = 12, base_family = "Helvetica")
theme_grey(base_size = 12, base_family = "")
}
\arguments{
\item{base_size}{base font size}
Expand Down

0 comments on commit c6bc17e

Please sign in to comment.