ggpointplot: Draw a point&line plot using multiple variable according the...

Description Usage Arguments Value Author(s) Examples

View source: R/ggpointplot.R

Description

Draw a point&line plot using multiple variable according the grouping info. Function 2.

Usage

1
ggpointplot(data, type = "simple", fun.data = mean_sdl, size = 4)

Arguments

data

A dataframe containing the grouping info and more than one numeric variables. The structure of data likes iris.

type

The type of plot, one of "simple" and "facet", the default type is "simple".

fun.data

The function used to draw the errorbar, one of "mean_sdl" and "mean_se"

size

the size of point

Value

a point plot

Author(s)

Zhonghui Gai

Examples

1
2
3
4
5
6
7
library(ggplot2)
data <- iris
colnames(data)[5] <- "group"
ggpointplot(data = data, type = "facet", fun.data = mean_sdl) +
ggsci::scale_color_aaas() +
theme(legend.position = c(0.5, 0.1),
      legend.direction = "horizontal")

ZhonghuiGai/ggroup documentation built on Dec. 18, 2021, 8:28 p.m.