stRoke/man/index_plot.Rd

40 lines
926 B
Plaintext
Raw Permalink Normal View History

2022-11-25 14:30:57 +01:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/index_plot.R
\name{index_plot}
\alias{index_plot}
\title{Plot multidimensional cognitive test scores}
\usage{
index_plot(
ds,
id = "id",
sub_plot = "_is",
scores = c("_is", "_lo", "_up", "_per"),
dom_names = c("immediate", "visuospatial", "verbal", "attention", "delayed", "total"),
facet.by = NULL
)
}
\arguments{
\item{ds}{complete data frame}
\item{id}{colname of id column. Base for colouring}
\item{sub_plot}{main outcome scores variable to plot}
2023-01-11 12:54:08 +01:00
\item{scores}{variables to subset for plotting. Has to follow standard
naming (is to be changed)}
2022-11-25 14:30:57 +01:00
\item{dom_names}{domain names for axis naming}
\item{facet.by}{variable to base facet_grid on}
}
\value{
ggplot element
}
\description{
2023-01-11 12:54:08 +01:00
Plot index scores from five dimensional cognitive testing.
Includes option to facet.
2022-11-25 14:30:57 +01:00
}
\examples{
index_plot(stRoke::score[score$event=="A",])
2022-11-25 14:30:57 +01:00
}