ACTL1101 Lecture Notes - Lecture 8: Function Point, Box Plot, Contingency Table

38 views7 pages
29 Dec 2018
Course
Professor

Document Summary

It takes the same arguments as plot(: note type l" is for lines, p" for points and b" for both. Beside the log-transformation, a good way to scale down big observations is to use function ecdf() and draw the empirical copula of a paired dataset attach(mammals) plot(ecdf(body)(body),ecdf(brain)(brain)) Basic plot: the segments() and lines() functions - pages 158-159. To join points with straight lines on an existing plot: # create an empty plot plot(0,0,n, xlab=, ylab=) # add a segment joining two points segments(x0=-0. 5, y0=0, x1=1, y1=-0. 5, col = red, lwd = 4) # add two segments, joining three points: first argument is the "x" values, second is the "y" values lines(c(-1,0,1), c(-1,0. 2,1), col = blue, lwd = 4: note the use of argument lwd" that makes the lines bigger. 159 plot(0,0,n, xlab=, ylab=) abline(h=0. 5, v=0, col = purple, lwd = 4) abline(a=1, b=1, col = orange, lwd = 4)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers