brokenlineplot: brokenline plot for data

Description Usage Arguments Examples

View source: R/brokenlineplot.R

Description

brokenline plot for data

Usage

1
2
3
brokenlineplot(data, x, y, groups = NULL, xlab = NULL, ylab = NULL,
  main = NULL, xlim = NULL, ylim = NULL, color = "black",
  shape = NULL, line = "solid", facet = NULL, titles = NULL)

Arguments

data

A list of data frames which have same structure.

x

A x-axis variable,character type

y

A y-axis variable,character type

xlab

the label of x-axis, character type.

ylab

the label of y-axis, character type.

main

a main title of plot.

xlim

the scale of x-axis, c(low, high).

ylim

the scale of y-axis, c(low, high).

color

a list of color match to group

shape

a list of point shape match to groups

group

the groups of response,character type

title

if there are multi-plots will be drawn, this list includes the title of each plot.

Examples

1
2
3
4
5
6
   library(ggplot2)
   data("economics")
   test<-economics
   test$group<-"a"
   test[which(a$uempmed<15),"group"]<-"b"
   brokenlineplot(test,x="psavert",y="uempmed",groups="group")

ShouyeLiu/metaboliteUtility documentation built on May 6, 2019, 9:07 a.m.