Description Usage Arguments Examples
View source: R/brokenlineplot.R
brokenline plot for data
1 2 3 |
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. |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.