## Snip Code Type — R 9 results found

#### Plotting a basic graph in R from a ASCII file R 1 954 Author: Ryan Bradley-Evans (Admin) Posted On: Sunday, November 2, 2014 at 5:01 AM

test.dat is the name of the ASCII saved in the working directory.

common graph types are; "p" for points, "l" for lines, "b" for both, "c" for the lines part alone of "b", "o" for both ?overplotted?, "h" for ?histogram? like (or ?high-density?) vertical lines, "s" for stair steps, "n" for no plotting.

#### Simple Graph Plotting R 0 795 Author: Matt Posted On: Monday, November 3, 2014 at 9:30 PM

This is just a simple introduction to plotting graphs in R.

'type="l"' = line plot graph type

'xlab' and 'ylab' = x and y labels

'main' = title of graph

#### Regression line R 0 833 Author: Ryan Bradley-Evans (Admin) Posted On: Thursday, November 27, 2014 at 6:44 PM

Plot a regression line in R and print the summary of the regression line.

#### Error bars. R 0 526 Author: Ryan Bradley-Evans (Admin) Posted On: Friday, November 28, 2014 at 2:12 AM

Plot error bars for both x and y in R

#### Heart Graph R 4 987 Author: Ryan Bradley-Evans (Admin) Posted On: Tuesday, December 2, 2014 at 11:27 AM

"lwd" is the width of the line

#### Christmas Tree R 0 656 Author: Ryan Bradley-Evans (Admin) Posted On: Tuesday, December 2, 2014 at 11:54 AM

Plots a Christmas tree with decorations in random places along the branches. try running the same code a few times to see for your self!

#### Save a graph as a pdf R 0 395 Author: Ryan Bradley-Evans (Admin) Posted On: Wednesday, December 14, 2016 at 7:46 AM

Insert you functions/datasets for X and Y after X<- and Y<- respectively