Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
R - Mortality Tables
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
R
R - Mortality Tables
Commits
f573eea5
Commit
f573eea5
authored
Apr 23, 2018
by
Reinhold Kainhofer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plotMortalityTableComparison / plotMortalityTrend: Add legend.title argument (and document it...)
parent
889d62ea
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
3 deletions
+19
-3
R/plotMortalityTrend.R
R/plotMortalityTrend.R
+2
-0
man/mortalityTable-class.Rd
man/mortalityTable-class.Rd
+4
-0
man/plotMortalityTableComparisons.Rd
man/plotMortalityTableComparisons.Rd
+4
-1
man/plotMortalityTables.Rd
man/plotMortalityTables.Rd
+1
-1
man/plotMortalityTrend.Rd
man/plotMortalityTrend.Rd
+8
-1
No files found.
R/plotMortalityTrend.R
View file @
f573eea5
...
...
@@ -12,8 +12,10 @@
#' @param ylab Y-axis label (default: "Sterbewahrscheinlichkeit q_x relativ zu ....")
#' @param title The plot title
#' @param legend.position The position of the legend (default is \code{c(0.9,0.1)})
#' @param legend.justification The justification of the legend (default is \code{c(1,)})
#' @param legend.key.width The keywith of the lines in the legend (default is \code{unit(25,"mm")})
#' @param legend.title Title of the legend (\code{NULL} to hide)
#' @param ages Plot only the given ages
#'
#' @examples
#' # Load the Austrian aunnity data
...
...
man/mortalityTable-class.Rd
View file @
f573eea5
...
...
@@ -23,5 +23,9 @@ to give the user a way to modify the final probabilities}
\item{\code{loading}}{Additional security loading on the resulting table (single numeric
value, e.g. 0.05 adds 5\% security margin to the probabilities)}
\item{\code{data}}{Placeholder list to make it possible to store any kind of data
associated with the object inside the object (e.g. the underlying
data used to derive the death probabilities, parameters for adjustment, etc.)}
}}
man/plotMortalityTableComparisons.Rd
View file @
f573eea5
...
...
@@ -7,7 +7,8 @@
plotMortalityTableComparisons(data, ..., ages = NULL, xlim = NULL,
ylim = NULL, xlab = NULL, ylab = NULL, title = "",
legend.position = c(0.9, 0.1), legend.justification = c(1, 0),
legend.key.width = unit(25, "mm"), reference = NULL)
legend.title = "Sterbetafel", legend.key.width = unit(25, "mm"),
reference = NULL)
}
\arguments{
\item{data}{First life table to be plotted. Either a \code{data.frame} generated by \code{makeQxDataFrame} or a \code{mortalityTable} object}
...
...
@@ -30,6 +31,8 @@ plotMortalityTableComparisons(data, ..., ages = NULL, xlim = NULL,
\item{legend.justification}{The justification of the legend (default is \code{c(1,)})}
\item{legend.title}{Title of the legend (\code{NULL} to hide)}
\item{legend.key.width}{The keywith of the lines in the legend (default is \code{unit(25,"mm")})}
\item{reference}{The reference table that determines the 100\% values. If not given, the first argument of \code{data} is used as reference table.}
...
...
man/plotMortalityTables.Rd
View file @
f573eea5
...
...
@@ -16,7 +16,7 @@ plotMortalityTables(data, ..., ages = NULL, legend.title = "Sterbetafel",
\item{ages}{Plot only the given ages}
\item{legend.title}{Title of the legend}
\item{legend.title}{Title of the legend
(\code{NULL} to hide)
}
\item{xlim}{X-axis limitatation (as a two-element vector)}
...
...
man/plotMortalityTrend.Rd
View file @
f573eea5
...
...
@@ -6,13 +6,16 @@
\usage{
plotMortalityTrend(data, ..., ages = NULL, xlim = NULL, ylim = NULL,
xlab = NULL, ylab = NULL, title = "", legend.position = c(0.9, 0.9),
legend.justification = c(1, 1), legend.key.width = unit(25, "mm"))
legend.justification = c(1, 1), legend.title = "Sterbetafel",
legend.key.width = unit(25, "mm"))
}
\arguments{
\item{data}{First life table to be plotted. Either a \code{data.frame} generated by \code{makeQxDataFrame} or a \code{mortalityTable} object}
\item{...}{Additional life tables to be plotted (if \code{data} is a \code{mortalityTable} object)}
\item{ages}{Plot only the given ages}
\item{xlim}{X-axis limitatation (as a two-element vector)}
\item{ylim}{Y-axis limitatation (as a two-element vector)}
...
...
@@ -25,6 +28,10 @@ plotMortalityTrend(data, ..., ages = NULL, xlim = NULL, ylim = NULL,
\item{legend.position}{The position of the legend (default is \code{c(0.9,0.1)})}
\item{legend.justification}{The justification of the legend (default is \code{c(1,)})}
\item{legend.title}{Title of the legend (\code{NULL} to hide)}
\item{legend.key.width}{The keywith of the lines in the legend (default is \code{unit(25,"mm")})}
}
\description{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment