1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme_pubr.R
\name{theme_pubr}
\alias{theme_pubr}
\alias{theme_pubclean}
\alias{labs_pubr}
\alias{theme_classic2}
\alias{clean_theme}
\alias{clean_table_theme}
\title{Publication ready theme}
\usage{
theme_pubr(
base_size = 12,
base_family = "",
border = FALSE,
margin = TRUE,
legend = c("top", "bottom", "left", "right", "none"),
x.text.angle = 0
)
theme_pubclean(base_size = 12, base_family = "", flip = FALSE)
labs_pubr(base_size = 14, base_family = "")
theme_classic2(base_size = 12, base_family = "")
clean_theme()
clean_table_theme()
}
\arguments{
\item{base_size}{base font size}
\item{base_family}{base font family}
\item{border}{logical value. Default is FALSE. If TRUE, add panel border.}
\item{margin}{logical value. Default is TRUE. If FALSE, reduce plot margin.}
\item{legend}{character specifying legend position. Allowed values are one of
c("top", "bottom", "left", "right", "none"). Default is "top" side position.
to remove the legend use legend = "none". Legend position can be also
specified using a numeric vector c(x, y). In this case it is possible to
position the legend inside the plotting area. x and y are the coordinates of
the legend box. Their values should be between 0 and 1. c(0,0) corresponds
to the "bottom left" and c(1,1) corresponds to the "top right" position. For
instance use legend = c(0.8, 0.2).}
\item{x.text.angle}{Rotation angle of x axis tick labels. Default value is 0.
Use 90 for vertical text.}
\item{flip}{logical. If TRUE, grid lines are added to y axis instead of x
axis.}
}
\description{
\itemize{ \item \strong{theme_pubr()}: Create a publication ready
theme \item \strong{theme_pubclean()}: a clean theme without axis lines, to
direct more attention to the data. \item \strong{labs_pubr()}: Format only
plot labels to a publication ready style \item \strong{theme_classic2()}:
Create a classic theme with axis lines. \item \strong{clean_theme()}: Remove
axis lines, ticks, texts and titles. \item \strong{clean_table_theme()}:
Clean the the theme of a table, such as those created by
\code{\link{ggsummarytable}()}}.
}
\examples{
p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
geom_point(aes(color = gear))
# Default plot
p
# Use theme_pubr()
p + theme_pubr()
# Format labels
p + labs_pubr()
}
|