Añadiendo la opción de excluir del agrupamiento.

This commit is contained in:
2022-02-05 10:38:57 +01:00
parent 0794c9fc1e
commit 0b6f3b80d1
2 changed files with 5 additions and 5 deletions
+2 -1
View File
@@ -2,7 +2,7 @@
\alias{ggheatmap}
\title{ggheatmap}
\usage{
ggheatmap(df, x=NULL, y=NULL, value=NULL, grouping="mean")
ggheatmap(df, x=NULL, y=NULL, value=NULL, grouping="mean", exclude_group=NULL)
}
\arguments{
\item{df}{A data frame in "long" format.}
@@ -10,6 +10,7 @@ ggheatmap(df, x=NULL, y=NULL, value=NULL, grouping="mean")
\item{y}{The variable that will be used for Y axis in the heatmap. If not specified, the second column will be used.}
\item{value}{The variable that will be used for colouring the heatmap. If not specified, the third column will be used.}
\item{grouping}{The function that will be used to group if there is more than one observation for each X-Y combination. "mean" or "median" are posible, defaulting to "mean".}
\item{exclude_group}{If you want to exclude columns from grouping, you can introduce a character vector here. Useful if you want to facet the plot.}
}
\description{
Generates a heatmap using ggplot for a dataframe.