This function provides a plot of a single-case or multiple single-cases. It takes a single-case data-frame (scdf) as input and returns an object of class scplot, which can be further customized using various functions provided in the package.

# S3 method for class 'scdf'
scplot(object, ...)

Arguments

object

A single-case data-frame object (scdf).

...

further arguments.

Value

An object of class scplot containing the single-case data (element scdf), and information about the plot style (element theme). This object can be further customized using various functions provided in the package.

Details

The function automatically extracts relevant information from the single-case data-frame, such as dependent variable, phase variable, and measurement time variable. It also sets default values for various plot elements, including data lines, statistical lines, ridges, marks, texts, and lines.

Author

Juergen Wilbert

Examples

data(exampleAB, package = "scan")
p1 <- scplot(exampleAB)
p2 <- scplot(exampleAB$Anja)
p3 <- scplot(exampleAB[c("Anja", "Berta")])
print(p1)