Skip to content
Permalink
5ac1047c66
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (24 sloc) 2.21 KB
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/i2dash.R
\name{scatterplot_to_i2dash}
\alias{scatterplot_to_i2dash}
\title{Prepare a scatterplot to be rendered with the i2dash package.}
\usage{
scatterplot_to_i2dash(object, x, y, colour_by = NULL,
expression = NULL, title = NULL, ...)
}
\arguments{
\item{object}{A \linkS4class{i2dash::i2dashboard} object.}
\item{x}{A vector with numerical values or a named list will be mapped to the x-axis. In case of a named list, a dropdown menu will be provided in the interactive mode. Note: The length of vectors x and y should be the same as well as the length of all vectors in case of a named list.}
\item{y}{A vector with numerical values or a named list will be mapped to the y-axis. In case of a named list, a dropdown menu will be provided in the interactive mode. Note: The length of vectors x and y should be the same as well as the length of all vectors in case of a named list.}
\item{colour_by}{(Optional) A vector with factorial (= categorical coloring), numerical (= sequential colouring; can be forced to use categorical colouring by providing the parameter '"categorized" = TRUE') or character (= categorical colouring) values or a named list that will be used for colouring. In case of a named list, a dropdown menu will be provided in the interactive mode. Note: The length of the vector should be of the same length as x and y as well as the length of all vectors in case of a named list.}
\item{expression}{(Optional) A matrix or dataframe with the same length of columns as 'x'. The sequence and number of the columns should be equal to the sequence and length of 'x'. The rownames represent the feature i.e. gene names and the values represent the expression level. Note: This feature is not compatible with the statical mode (parameter '"interactive" = TRUE'). Alternatively you can provide a vector as colour_by.}
\item{title}{(Optional) The title of the components chunk.}
\item{...}{Further parameters which are compatible with wilsons create_scatterplot() method. See \code{\link{create_scatterplot}}.}
}
\value{
A string containing markdown code for the rendered textbox
}
\description{
Prepare a scatterplot to be rendered with the i2dash package.
}