File: dot-add.legend.Rd

package info (click to toggle)
r-cran-tcr 2.3.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, trixie
  • size: 2,316 kB
  • sloc: cpp: 187; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 668 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datatools.R
\name{.add.legend}
\alias{.add.legend}
\title{Internal function. Add legend to a grid of plots and remove legend from all plots of a grid.}
\usage{
.add.legend(.vis.list, .vis.nrow = 2, .legend.ncol = 1)
}
\arguments{
\item{.vis.list}{A list with ggplot2 plots.}

\item{.vis.nrow}{Number of rows of the resulting grid with plots.}

\item{.legend.ncol}{Number of columns in the shared legend.}
}
\description{
Given a list of ggplot2 plots, remove legend from each of them and return 
grid of such plots plus legend from the first vis. Suitable for plots
with similar legends.
}