Description Usage Arguments Author(s) See Also Examples
Constructs a line graph.
1 |
x |
Vector of numerical observations to be graphed. |
freq |
Logical; if |
prob |
Vector of the probabilities or weights on |
col |
The color of the plotted lines. Type |
... |
Optional arguments to |
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
1 2 3 4 5 6 7 | par( mfrow=c(2,2) )
lineGraph( c( rep(6,4), rep(9,7), rep(3,5), 5, 8, 8 ) )
lineGraph( c( rep(6,4), rep(9,7), rep(3,5), 5, 8, 8 ), FALSE, col="purple" )
lineGraph( 11:14, , c( 12, 9, 17, 5 ), col="blue" )
lineGraph( 0:10, FALSE, dbinom(0:10,10,0.4), col="darkgreen",
main="Binomial(n=10,p=0.4) probabilities" )
par( mfrow=c(1,1) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.