mirror of
https://github.com/agdamsbo/daDoctoR.git
synced 2024-10-30 02:31:52 +01:00
36 lines
1.3 KiB
R
36 lines
1.3 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/plot_biv_olr.R
|
|
\name{plot_biv_olr}
|
|
\alias{plot_biv_olr}
|
|
\title{Forrest plot from ordinal logistic regression, version2 of plot_ord_ords().}
|
|
\usage{
|
|
plot_biv_olr(meas, vars, data, title = NULL, dec = 3, lbls = NULL,
|
|
hori = "OR (95 \% CI)", vert = "Variables", short = FALSE,
|
|
analysis = c("biv", "multi"))
|
|
}
|
|
\arguments{
|
|
\item{meas}{outcome meassure variable name or response in data-data.frame as a string. Should be factor, preferably ordered.}
|
|
|
|
\item{vars}{variables to compare against. As vector of columnnames.}
|
|
|
|
\item{data}{dataframe of data.}
|
|
|
|
\item{title}{plot title}
|
|
|
|
\item{dec}{decimals for labels}
|
|
|
|
\item{lbls}{labels for variable names. Carefull, as the right order is not checked automatically!}
|
|
|
|
\item{hori}{labels the horizontal axis (this i the y axis as the plot is rotated)}
|
|
|
|
\item{vert}{labels the horizontal axis (this i the x axis as the plot is rotated)}
|
|
|
|
\item{short}{flag to half number of ticks on horizontal axis.}
|
|
|
|
\item{analysis}{can be either "biv", or "multi", for creation of forest plot from either bivariate (unadjusted) or multivariate (adjusted) ordinal logistic regression.}
|
|
}
|
|
\description{
|
|
Heavily inspired by https://www.r-bloggers.com/plotting-odds-ratios-aka-a-forrestplot-with-ggplot2/
|
|
}
|
|
\keyword{forestplot}
|