Description Usage Arguments See Also Examples

Plots x versus y with optional labels. The x or y variable may be a character vector, but not both.

1 |

`x` |
Vector to be graphed on x-axis. May be a character vector, if y is numeric. |

`y` |
Vector to be graphed on y-axis. May be a character vector, if x is numeric. |

`labels` |
Character vector containing the labels for individual points. |

`srt` |
A numerical value specifying (in degrees) how strings should be rotated.
It is unwise to expect values other than multiples of 90 to work.
See help on |

`tcex` |
A numerical value giving the amount by which the labels text or symbols should be scaled relative to the default. |

`...` |
Other arguments controlling the plot. Many graphical plotting
arguments may be used. See help on |

plot, bplot, boxplot, mplot

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ```
# Create some Normal data
set.seed(123)
temp<- data.frame(matrix(rnorm(12*8), ncol=12))
pos<- c(1:6,9:14)
lplot(temp)
# Now see some labels
lplot(temp, labels=paste("Y",1:12), tcex=.5)
# Create a data set with two factors (age and gender)
race<-data.frame(c(1.02,.99,1.11,1.30,1.09,1.26,1.21,1.19,1.30,1.45,1.34,1.49),
c('M','M','M','M','M','M','F','F','F','F','F','F'),
c('under 50','under 50','under 50','over 50','over 50','over 50',
'under 50','under 50','under 50','over 50','over 50','over 50'))
names(race)<-c("time","gender","age")
# Plot the data to see the factors
lplot(race$gender, race$time, race$age)
``` |

Rlab documentation built on May 30, 2017, 3:26 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.