File: axis_scale.Rd

package info (click to toggle)
r-cran-ggpubr 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,240 kB
  • sloc: makefile: 2
file content (35 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (2)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/axis_scale.R
\name{axis_scale}
\alias{axis_scale}
\alias{xscale}
\alias{yscale}
\title{Change Axis Scale: log2, log10 and more}
\usage{
xscale(.scale, .format = FALSE)

yscale(.scale, .format = FALSE)
}
\arguments{
\item{.scale}{axis scale. Allowed values are one of c("none", "log2", "log10",
"sqrt", "percent", "dollar", "scientific"); e.g.: .scale="log2".}

\item{.format}{ogical value. If TRUE, axis tick mark labels will be formatted
when .scale  = "log2" or "log10".}
}
\description{
Change axis scale.
\itemize{
\item \code{xscale}: change x axis scale.
\item \code{yscale}: change y axis scale.
}
}
\examples{
# Basic scatter plots
data(cars)
p <- ggscatter(cars, x = "speed", y = "dist")
p

# Set log scale
p + yscale("log2", .format = TRUE)
}