Learn R Programming

ds (version 4.0)

dplot: Dispersion Plot

Description

Plot dispersion of first column of data in relation other columns

Usage

dplot(data, xlab = "Variable x", ylab = "Variable y", position = 1, colors = TRUE, 
type = "o", mean=TRUE)

Arguments

data

data is a data.frame

xlab

x-axis title

ylab

y-axis title

position

position of legend

top=1 (default)

bottomright=2

bottom=3

bottomleft=4

left=5

topleft=6

topright=7

right=8

center=9

colors

colors lines =TRUE (default) or black lines =FALSE

type

type of plot (see the plot function)

mean

plot means = TRUE (default) or plot original data = FALSE

See Also

dscor, gds, tables

Examples

Run this code
# NOT RUN {
Time=c(10,20,30,40,50,60,70)
x=c(1,3,5,6,7,9,6)
y=c(4,6,8,9,10,15,16)
z=c(1,5,18,19,22,20,15)

data=data.frame(Time,x,y,z)

dplot(data)
# }

Run the code above in your browser using DataLab