Library: | graphic |
See also: | grxline grlinreg grcircle |
Quantlet: | gryline | |
Description: | Generates a horizontal line as a graphical object. |
Usage: | ly = gryline (y, v {, col}) | |
Input: | ||
y | scalar | |
v | n x 1 vector | |
col | color | |
Output: | ||
ly | composed graphical object |
library("graphic") x = normal(100, 2) lx = grxline(0, x[,2]) ly = gryline(0, x[,1]) d = createdisplay(1,1) show(d, 1, 1, x, lx, ly)
shows a bivariate normally distributed dataset and the coordinate axes.