Learn R Programming

SSDforR (version 1.0)

SD2legend: 2-SD legend

Description

Adds legend to 2-SD band graphs (SD2) use only when graph is completed. type IQRlegend() and return

Usage

SD2legend()

Arguments

References

go to www.ssdanalysis.com

Examples

Run this code
cry<-c(3, 4, 2, 5, 3, 4, NA, 2, 2, 3, 2, 1, 2, NA, 2, 2, 1, 2, 1, 0, 0, 0)
pcry<-c("A", "A", "A", "A", "A", "A", NA, "B", "B", "B", "B", "B", "B", NA, "B1", "B1", "B1", "B1", "B1", "B1", "B1", "B1")
SD2(cry,pcry,"A","week","amount","Crying")
SD2legend()

Run the code above in your browser using DataLab