Package yarrr. April 19, 2017

Similar documents
Package painter. August 13, 2018

Package RSentiment. October 15, 2017

Package rasterimage. September 10, Index 5. Defines a color palette

Package colorpatch. June 10, 2017

Package schoenberg. June 26, 2018

Package ForImp. R topics documented: February 19, Type Package. Title Imputation of Missing Values Through a Forward Imputation.

Package crimelinkage

Package spotsegmentation

Package hcandersenr. January 20, 2019

Measuring Variability for Skewed Distributions

Package icaocularcorrection

What is Statistics? 13.1 What is Statistics? Statistics

Box Plots. So that I can: look at large amount of data in condensed form.

Lesson 7: Measuring Variability for Skewed Distributions (Interquartile Range)

Normalization Methods for Two-Color Microarray Data

MATH& 146 Lesson 11. Section 1.6 Categorical Data

STAT 113: Statistics and Society Ellen Gundlach, Purdue University. (Chapters refer to Moore and Notz, Statistics: Concepts and Controversies, 8e)

AP Statistics Sampling. Sampling Exercise (adapted from a document from the NCSSM Leadership Institute, July 2000).

Package Polychrome. R topics documented: November 20, 2017

Resampling Statistics. Conventional Statistics. Resampling Statistics

Algebra I Module 2 Lessons 1 19

Phenopix - Exposure extraction

Chapter 5. Describing Distributions Numerically. Finding the Center: The Median. Spread: Home on the Range. Finding the Center: The Median (cont.

Lecture 10: Release the Kraken!

NETFLIX MOVIE RATING ANALYSIS

Bootstrap Methods in Regression Questions Have you had a chance to try any of this? Any of the review questions?

Lesson 7: Measuring Variability for Skewed Distributions (Interquartile Range)

AP Statistics Sec 5.1: An Exercise in Sampling: The Corn Field

N12/5/MATSD/SP2/ENG/TZ0/XX. mathematical STUDIES. Wednesday 7 November 2012 (morning) 1 hour 30 minutes. instructions to candidates

Frequencies. Chapter 2. Descriptive statistics and charts

Chapter 27. Inferences for Regression. Remembering Regression. An Example: Body Fat and Waist Size. Remembering Regression (cont.)

Sample Analysis Design. Element2 - Basic Software Concepts (cont d)

Chapter 1 Midterm Review

NENS 230 Assignment #2 Data Import, Manipulation, and Basic Plotting

Blueline, Linefree, Accuracy Ratio, & Moving Absolute Mean Ratio Charts

Moving on from MSTAT. March The University of Reading Statistical Services Centre Biometrics Advisory and Support Service to DFID

More About Regression

Sampling Worksheet: Rolling Down the River

Reviews of earlier editions

Why visualize data? Advanced GDA and Software: Multivariate approaches, Interactive Graphics, Mondrian, iplots and R. German Bundestagswahl 2005

Distribution of Data and the Empirical Rule

Statistics for Engineers

QCTool. PetRos EiKon Incorporated

Fundamentals and applications of resampling methods for the analysis of speech production and perception data.

Pirates Caribbean

Math 81 Graphing. Cartesian Coordinate System Plotting Ordered Pairs (x, y) (x is horizontal, y is vertical) center is (0,0) Quadrants:

Writing Package Vignettes

TI-Inspire manual 1. Real old version. This version works well but is not as convenient entering letter

Estimating. Proportions with Confidence. Chapter 10. Copyright 2006 Brooks/Cole, a division of Thomson Learning, Inc.

Part 1: Introduction to Computer Graphics

Package machina. October 7, 2016

NAA ENHANCING THE QUALITY OF MARKING PROJECT: THE EFFECT OF SAMPLE SIZE ON INCREASED PRECISION IN DETECTING ERRANT MARKING

MATH 214 (NOTES) Math 214 Al Nosedal. Department of Mathematics Indiana University of Pennsylvania. MATH 214 (NOTES) p. 1/3

COMP Test on Psychology 320 Check on Mastery of Prerequisites

Mixed models in R using the lme4 package Part 2: Longitudinal data, modeling interactions

MultiSpec Tutorial: Visualizing Growing Degree Day (GDD) Images. In this tutorial, the MultiSpec image processing software will be used to:

User s Manual. Log Scale (/LG) GX10/GX20/GP10/GP20/GM10 IM 04L51B01-06EN. 2nd Edition

Analysis of local and global timing and pitch change in ordinary

Does the number of users rating the movie accurately predict the average user rating?

SpectraPlotterMap 12 User Guide

WEB APPENDIX. Managing Innovation Sequences Over Iterated Offerings: Developing and Testing a Relative Innovation, Comfort, and Stimulation

2. ctifile,s,h, CALDB,,, ACIS CTI ARD file (NONE none CALDB <filename>)

Multiple-point simulation of multiple categories Part 1. Testing against multiple truncation of a Gaussian field

Graphics I Or Making things pretty in R.

Neural Network Predicating Movie Box Office Performance

16B CSS LAYOUT WITH GRID

(Skip to step 11 if you are already familiar with connecting to the Tribot)

TWO-FACTOR ANOVA Kim Neuendorf 4/9/18 COM 631/731 I. MODEL

Graphic standards for the Electric Circuit logo

CHAPTER 7 BASIC GRAPHICS, EVENTS AND GLOBAL DATA

For the SIA. Applications of Propagation Delay & Skew tool. Introduction. Theory of Operation. Propagation Delay & Skew Tool

Lecture 2 Video Formation and Representation

DICOM Correction Proposal

PICK THE RIGHT TEAM AND MAKE A BLOCKBUSTER A SOCIAL ANALYSIS THROUGH MOVIE HISTORY

Common assumptions in color characterization of projectors

Version : 1.0: klm. General Certificate of Secondary Education November Higher Unit 1. Final. Mark Scheme

Relationships Between Quantitative Variables

abc Mark Scheme Statistics 3311 General Certificate of Secondary Education Higher Tier 2007 examination - June series

Why t? TEACHER NOTES MATH NSPIRED. Math Objectives. Vocabulary. About the Lesson

Analysis of Film Revenues: Saturated and Limited Films Megan Gold

Part 1: Introduction to computer graphics 1. Describe Each of the following: a. Computer Graphics. b. Computer Graphics API. c. CG s can be used in

On Your Own. Applications. Unit 2. ii. The following are the pairs of mutual friends: A-C, A-E, B-D, C-D, and D-E.

EXPLORING DISTRIBUTIONS

CERTIFICATION MARK STANDARDS GUIDE

Automatic LP Digitalization Spring Group 6: Michael Sibley, Alexander Su, Daphne Tsatsoulis {msibley, ahs1,

Module 8 VIDEO CODING STANDARDS. Version 2 ECE IIT, Kharagpur

Image-to-Markup Generation with Coarse-to-Fine Attention

Title page. Journal of Radioanalytical and Nuclear Chemistry. Names of the authors: Title: Affiliation(s) and address(es) of the author(s):

Relationships. Between Quantitative Variables. Chapter 5. Copyright 2006 Brooks/Cole, a division of Thomson Learning, Inc.

FAQs by Jack C Tutorials about Remote Sensing Science and Geospatial Information Technologies

Key Maths Facts to Memorise Question and Answer

Chapter 6. Normal Distributions

Homework Packet Week #5 All problems with answers or work are examples.

Package knitcitations

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Ordinary Level

Logo Guidelines Version 1.1, September 2008

Nintendo. January 21, 2004 Good Emulators I will place links to all of these emulators on the webpage. Mac OSX The latest version of RockNES

E X P E R I M E N T 1

Supplementary Figures Supplementary Figure 1 Comparison of among-replicate variance in invasion dynamics

Notes Unit 8: Dot Plots and Histograms

Transcription:

Package yarrr April 19, 2017 Title A Companion to the e-book ``YaRrr!: The Pirate's Guide to R'' Version 0.1.5 Date 2017-4-18 Contains a mixture of functions and data sets referred to in the introductory e- book ``YaRrr!: The Pirate's Guide to R''. The latest version of the e- book is available for free at <https://www.thepiratesguidetor.com>. Depends jpeg,bayesfactor,circlize License GPL-2 LazyData true URL www.thepiratesguidetor.com BugReports https://github.com/ndphillips/yarrr/issues RoxygenNote 6.0.1 Suggests knitr, rmarkdown VignetteBuilder knitr NeedsCompilation no Author Nathaniel Phillips [aut, cre] Maintainer Nathaniel Phillips <yarrr.book@gmail.com> Repository CRAN Date/Publication 2017-04-19 08:39:31 UTC R topics documented: apa.............................................. 2 auction............................................ 3 BeardLengths........................................ 3 capture............................................ 4 diamonds.......................................... 5 examscores......................................... 5 movies............................................ 6 piratepal........................................... 7 1

2 apa pirateplot.......................................... 8 pirates............................................ 12 pirateserrors......................................... 13 pircharter.......................................... 14 poopdeck.......................................... 14 recodev........................................... 15 transparent.......................................... 16 yarrr.guide.......................................... 17 Index 18 apa apa This function takes a hypothesis test object (e.g.; t.test(), cor.test(), chisq.test()) as an input, and returns a string with the test result in APA format. apa(test.object, tails = 2, sig.digits = 2, p.lb = 0.01) Arguments test.object A hypothesis test object generated by functions such as t.test(), cor.test, chisq.test() tails The number of tails in the test (1 or 2) sig.digits p.lb The number of digits results are rounded to The lower bound of the p-value display. If the p-value is less than p.lb, the exact value will not be displayed. Examples x <- rnorm(100) y <- x + rnorm(100) a <- sample(1:3, size = 200, prob = c(.3,.2,.5), replace = TRUE) b <- sample(1:3, size = 200, prob = c(.3,.2,.5), replace = TRUE) apa(t.test(x, y)) apa(cor.test(x, y)) apa(chisq.test(table(a, b)))

auction 3 auction auction A dataframe containing data from 1000 ships sold at a pirate auction. auction A data frame containing 1000 rows and 8 columns cannons (integer) The number of cannons on the ship rooms (integer) The number of rooms on the ship age (numeric) The age of the ship in years condition (integer) The condition of the ship on a scale of 1 to 10 color (string) The color of the ship style (string) The style of the ship - either modern or classic jbb (numeric) The pre-sale predicted value of the ship according to Jack s Blue Book (JBB) price (numeric) The actual selling price of the ship (in gold pieces, obviously) 2015 annual pirate auction in Portland Oregon BeardLengths BeardLengths A dataframe containing the lengths of beards on 3 different pirate ships BeardLengths A data frame containing 150 rows and 2 columns Ship (character) - The pirate s ship Beard (numeric) - The length of the pirate s beard in cm

4 capture 2015 annual international pirate meeting at the Bodensee in Konstanz, Germany capture capture A dataframe containing a historical record of every ship the Perilous Pigeon captured on the Bodensee in the years 2014 and 2015 capture A data frame containing 1000 rows and 10 columns size (integer) - The size (length) of the ship (maybe in meters?) cannons (integer) - The number of cannons on the ship style (string) - The style of the ship (either modern or classic) warnshot (binary) - Did the ship fire a warning shot at the Perilous Pigeon when it got close? date (integer) - The date of the capture (1 = January 1, 365 = December 31) heardof (binary) - Was the target ship recognized by the captain s first mate? decorations (integer) - An integer between 1 and 10 indicating how decorated the ship was. 1 means it looks totally common and shabby, 10 means it is among the finest looking ship you ve ever seen! daysfromshore (integer) - How many days from the nearest land was the ship when it was found? speed (integer) - How fast was the ship going when it was caught? treasure (numeric) - How much treasure was found on the ship when it was captured? 2015 annual international pirate meeting at the Bodensee in Konstanz, Germany

diamonds 5 diamonds diamonds A dataframe containing information about 150 diamonds sold at auction. diamonds A data frame containing 300 rows and 4 columns weight (numeric) - The weight of the diamond clarity (numeric) - The clarity of the diamond color (numeric) - The color shading of the diamond value The value of the diamond 2015 annual international pirate meeting at the Bodensee in Konstanz, Germany examscores examscores A dataframe containing the results of 4 exams given to 100 students. Each row represents a student, each column is a score on an exam examscores A data frame containing 100 rows and 4 columns a (numeric) - Score on exam a b (numeric) -...exam b c (numeric) -...exam c d (numeric) -...exam d 2015 annual international pirate meeting at the Bodensee in Konstanz, Germany

6 movies movies movies A dataframe containing information about the top 5000 grossing movies of all time. movies A data frame containing 5000 rows and 13 columns name Movie name rating MPAA rating genre Movie genre creative.type Creative type time Running time in minutes year Year of release production.method Production method sequel Was the movie a sequel? 1 = yes, 0 = no budget Movie budget (in $USD millions) revenue.all Gross worldwide revenue in $USD millions revenue.dom Domestic revenue in $USD millions revenue.int International revenue in $USD millions revenue.inf Inflation adjusted worldwide revenue in $USD millions www.the-numbers.com

piratepal 7 piratepal piratepal This function provides a number of color palettes piratepal(palette = "all", trans = 0, mix.col = "white", mix.p = 0, plot.result = FALSE, length.out = NULL) Arguments palette A string defining the color palette to use (see examples). To use a random palette, use "random". To plot all palettes, use "all". To see all palette names, use "names" trans mix.col mix.p plot.result length.out Examples A number in the interval [0, 1] indicating how transparent to make the colors. A value of 0 means no transparency and a value of 1 means completely transparency. string. An optional string representing a color to mix all colors in the palette with. numeric. A number in the interval [0, 1] indicating how much to mix the palette colors with the color in mix.col A logical value indicating whether or not to display the colors. An integer indicating how many colors to return. If length.out is larger than the number of colors in the palette, colors will be repeated. # Check out the vignette for a full guide vignette("piratepal", package = "yarrr") # Show all palettes piratepal(palette = "all") # Show some palettes piratepal(palette = "basel", trans =.5, plot.result = TRUE) # Using a palette in a scatterplot

8 pirateplot nemo.cols <- piratepal(palette = "nemo", trans =.5) set.seed(100) # For reproducibility x <- rnorm(100) y <- x + rnorm(100) plot(x = x, y = y, col = nemo.cols, pch = 16, cex = runif(100, min = 0, max = 2), main = "piratepal('nemo', trans =.5)") pirateplot pirateplot The pirateplot function creates an RDI (Raw data, Descriptive and Inferential statistic) plot showing the relationship between 1 to 3 categorical independent variables and 1 continuous dependent variable. pirateplot(formula = NULL, data = NULL, plot = TRUE, avg.line.fun = mean, pal = "basel", mix.col = "white", mix.p = 0, back.col = NULL, point.cex = NULL, point.pch = NULL, point.lwd = 1, jitter.val = 0.03, theme = 1, bean.b.o = NULL, bean.f.o = NULL, point.o = NULL, bar.f.o = NULL, bar.b.o = NULL, inf.f.o = NULL, inf.b.o = NULL, avg.line.o = NULL, gl.col = NULL, point.col = NULL, point.bg = NULL, bar.f.col = NULL, bean.b.col = NULL, bean.f.col = NULL, inf.f.col = NULL, inf.b.col = NULL, avg.line.col = NULL, bar.b.col = NULL, quant.col = NULL, avg.line.lwd = 4, bean.lwd = 1, bean.lty = 1, inf.lwd = NULL, bar.lwd = 1, at = NULL, bw = "nrd0", adjust = 1, add = FALSE, sortx = "alphabetical", decreasing = FALSE, cex.lab = 1, cex.axis = 1, cex.names = 1, quant = NULL, quant.length = NULL, quant.lwd = NULL, quant.boxplot = FALSE, bty = "o", cap.beans = TRUE, family = NULL, inf.method = "hdi", inf.within = NULL, inf.p = NULL, hdi.iter = 1000, inf.disp = NULL, cut.min = NULL, cut.max = NULL, width.min = 0.3, width.max = NA, ylim = NULL, xlim = NULL, xlab = NULL, ylab = NULL, main = NULL, yaxt = NULL, xaxt = NULL, gl = NULL, gl.lwd = NULL, gl.lty = NULL, bar.b.lwd = NULL, line.fun = NULL, line.o = NULL, inf.o = NULL, bean.o = NULL, inf.col = NULL, theme.o = NULL, bar.o = NULL, inf = NULL, hdi.o = NULL, inf.type = NULL, inf.band = NULL)

pirateplot 9 Arguments formula data plot avg.line.fun pal formula. A formula in the form y ~ x1 + x2 + x3 indicating the vertical response variable (y) and up to three independent variables Either a dataframe containing the variables specified in formula, a list of numeric vectors, or a numeric dataframe / matrix. logical. If TRUE (the default), thent the pirateplot is produced. If FALSE, the data summaries created in the plot are returned as a list. function. A function that determines how average lines and bar heights are determined (default is mean). string. The color palette of the plot. Can be a single color, a vector of colors, or the name of a palette in the piratepal() function (e.g.; "basel", "google", "southpark"). To see all the palettes, run piratepal(palette = "all", action = "show") mix.col, mix.p Optional color mixing arguments to be passed to piratepal. See?piratepal for examples. back.col string. Color of the plotting background. point.cex, point.pch, point.lwd numeric. The size, pch type, and line width of raw data points. jitter.val numeric. Amount of jitter added to points horizontally. Defaults to 0.05. theme integer. An integer in the set 0, 1, 2 specifying a theme (that is, new default values for opacities and colors). theme = 0 turns off all opacities which can then be individually specified individually. bar.f.o, point.o, inf.f.o, inf.b.o, avg.line.o, bean.b.o, bean.f.o, bar.b.o numeric. A number between 0 and 1 indicating how opaque to make the bars, points, inference band, average line, and beans respectively. These values override whatever is in the specified theme point.col, bar.f.col, bean.b.col, bean.f.col, inf.f.col, inf.b.col, avg.line.col, bar.b.col, quant.c string. Vectors of colors specifying the colors of the plotting elements. This will override values in the palette. f stands for filling, b stands for border. bean.lwd, bean.lty, inf.lwd, avg.line.lwd, bar.lwd numeric. Vectors of numbers customizing the look of beans and lines. at bw, adjust add sortx integer. Locations of the beans. Especially helpful when adding beans to an existing plot with add = TRUE Arguments passed to density calculations for beans (see?density) logical. Should the pirateplot elements be added to an existing plotting space? string. How to sort the x values. Can be "sequential" (as they are found in the original dataframe), "alphabetical", or a string in the set ("mean", "median", "min", "max") indicating a function decreasing logical. If sortx is a named function, should values be sorted in decreasing order? cex.lab, cex.axis, cex.names Size of the labels, axes, and bean names. quant numeric. Adds horizontal lines representing custom quantiles. quant.length, quant.lwd numeric. Specifies line lengths/widths of quant.

10 pirateplot quant.boxplot logical. Should standard values be included? bty, xlim, ylim, xlab, ylab, main, yaxt, xaxt General plotting arguments cap.beans family logical. Should maximum and minimum values of the bean densities be capped at the limits found in the data? Default is FALSE. a font family (Not currently in use) inf.method string. A string indicating what types of inference bands to calculate. "ci" means frequentist confidence intervals, "hdi" means Bayesian Highest Density Intervals (HDI), "iqr" means interquartile range, "sd" means standard deviation, "se" means standard error, "withinci" means frequentist confidence intervals in a within design (Morey, 2008). inf.within inf.p hdi.iter string. The variable which serves as an ID variable in a within design. numeric. A number adjusting how inference ranges are calculated. for "ci" and "hdi", a number between 0 and 1 indicating the level of confidence (default is.95). For "sd" and "se", the number of standard deviations / standard errors added to or subtracted from the mean (default is 1). integer. Number of iterations to run when calculating the HDI. Larger values lead to better estimates, but can be more time consuming. inf.disp string. How should inference ranges be displayed? "line" creates a classic vertical line, "rect" creates a rectangle, "bean" forms the inference around the bean. cut.min, cut.max numeric. Optional minimum and maximum values of the beans. width.min, width.max numeric. The minimum/maximum width of the beans. gl numeric. Locations of the horizontal grid lines gl.lwd, gl.lty, gl.col Customization for grid lines. Can be entered as vectors for alternating gridline types bar.b.lwd, line.fun, inf.o, bean.o, inf.col, theme.o, inf, inf.type, inf.band, bar.o, line.o, hdi.o depricated arguments Examples # Default pirateplot of weight by Time pirateplot(formula = weight ~ Time, data = ChickWeight) # Same but in grayscale pirateplot(formula = weight ~ Time, data = ChickWeight, pal = "gray")

pirateplot 11 # Now using theme 2 pirateplot(formula = weight ~ Time, data = ChickWeight, main = "Chicken weight by time", theme = 2) # theme 2 # theme 3 pirateplot(formula = weight ~ Time, data = ChickWeight, main = "Chicken weight by time", theme = 3) # theme 3 # theme 4 pirateplot(formula = weight ~ Time, data = ChickWeight, main = "Chicken weight by time", theme = 4) # theme 4 # Start with theme 2, but then customise! pirateplot(formula = weight ~ Time, data = ChickWeight, theme = 2, # theme 2 pal = "xmen", # xmen palette main = "Chicken weights by Time", point.o =.4, # Add points point.col = "black", point.bg = "white", point.pch = 21, bean.f.o =.2, # Turn down bean filling inf.f.o =.8, # Turn up inf filling gl.col = "gray", # gridlines gl.lwd = c(.5, 0)) # turn off minor grid lines # 2 IVs pirateplot(formula = len ~ dose + supp, data = ToothGrowth, main = "Guinea pig tooth length by supplement", point.pch = 16, # Point specifications... point.col = "black", point.o =.7, inf.f.o =.9, # inference band opacity gl.col = "gray") # Build everything from scratch with theme 0 # And use 3 IVs pirateplot(formula = height ~ headband + eyepatch + sex, data = pirates, pal = gray(.1), # Dark gray palette theme = 0, # Start from scratch inf.f.o =.7, # Band opacity inf.f.col = piratepal("basel"), # Add color to bands point.o =.1, # Point opacity

12 pirates avg.line.o =.8, # Average line opacity gl.col = gray(.6), # Gridline specifications gl.lty = 1, gl.lwd = c(.5, 0)) # See the vignette for more details vignette("pirateplot", package = "yarrr") pirates pirates A dataset containing the results of a survey of 1,000 pirates. pirates A data frame containing 1,000 rows and 14 columns id An integer giving the pirate s id number sex A string with the pirate s self reported sex age An integer giving the age of the pirate in years height Height in cm weight Weight in kg headband A binary variable indicating whether the pirate wears a headband college A string indicating the college the pirate went to. JSSFP stands for Jack Sparro s School of Fashion and Piratery, while CCCC stands for Captain Chunk s Cannon Crew tattoos An integer indicating the number of tattoos the pirate has tchests An integer indicating the number of treasure chests found by the pirate parrots An integer indicating the number of parrots owned by the pirate in his/her lifetime favorite.pirate A string indicating The pirate s favorite pirate sword.type A string indicating the type of sword the pirate uses eyepatch An integer indicating the number of eyepatches worn by the pirate sword.time A number indicating how long it takes (in seconds) for the pirate to draw his/her sword. Smaller times are better! beard.length A number indicating length of the pirate s beard in centimeters fav.pixar A string indicating Pirate s favorite pixar movie grogg How many mugs of grogg the pirate drinks a day on average.

pirateserrors 13 2015 annual international pirate meeting at the Bodensee in Konstanz, Germany pirateserrors pirateserrors A dataset containing the results of a survey of 1,000 pirates. This dataset is identical to the pirates dataset - except that it has many errors! pirateserrors A data frame containing 1,000 rows and 14 columns id An integer giving the pirate s id number sex A string with the pirate s self reported sex headband A binary variable indicating whether the pirate wears a headband age An integer giving the age of the pirate in years college A string indicating the college the pirate went to. JSSFP stands for Jack Sparro s School of Fashion and Piratery, while CCCC stands for Captain Chunk s Cannon Crew tattoos An integer indicating the number of tattoos the pirate has tchests An integer indicating the number of treasure chests found by the pirate parrots An integer indicating the number of parrots owned by the pirate in his/her lifetime favorite.pirate A string indicating The pirate s favorite pirate sword.type A string indicating the type of sword the pirate uses sword.time A number indicating how long it takes (in seconds) for the pirate to draw his/her sword. Smaller times are better! eyepatch An integer indicating the number of eyepatches worn by the pirate beard.length A number indicating length of the pirate s beard in centimeters fav.pixar A string indicating Pirate s favorite pixar movie 2015 annual international pirate meeting at the Bodensee in Konstanz, Germany

14 poopdeck pircharter pircharter A dataframe containing travel times of chartered ships from three pirate companies to three different destinations. pircharter A data frame containing 1000 rows and 10 columns company (string) - The charter company: JoRo = Jolly Roger, BmcB = Boaty McBoat, MiPa = Millenium Parrot destination (string) - The destination of the charter time (numeric) - The travel time of the ship in hours 2015 annual international pirate meeting at the Bodensee in Konstanz, Germany poopdeck poopdeck A dataframe containing the amount of time it took to clean both pirate and shark poop from the poop deck using one of three different cleaning solutions poopdeck A data frame containing 300 rows and 4 columns day (factor) - The day that the poop deck was cleaned (1 through 10000) cleaner (string) - The cleaning solution used type (string) - The type of poop being cleaned time (numeric) - The amount of time (in minutes) the cleaning took.

recodev 15 2015 annual international pirate meeting at the Bodensee in Konstanz, Germany recodev recodev This function takes a vector original.vector, and converts all values in a vector old.values to the values in a new vector new.values. recodev(original.vector, old.values, new.values, others = NULL) Arguments original.vector A vector you want to recode old.values A vector of length M. new.values A vector of length M. others An optional value indicating what to convert all values in original.vector that are not found in old.values. Examples x <- c("y", "y", "XSF", "y", "0", "X", "0", "0", "y", "n", "0", "1", "1") recodev(original.vector = x, old.values = c("y", "1", "n", "0"), new.values = c(1, 1, 0, 0) ) x <- c("y", "y", "XSF", "y", "0", "X", "0", "0", "y", "n", "0", "1", "1") recodev(original.vector = x, old.values = c("y", "1", "n", "0"), new.values = c(1, 1, 0, 0), others = NA )

16 transparent transparent transparent function This function takes a standard color as an argument and returns a transparent version of that color transparent(orig.col = "red", trans.val = 1, maxcolorvalue = 255) Arguments orig.col trans.val maxcolorvalue The original color to be made transparent. Can be specified as a string or a vector of rgb values A number in the interval [0, 1] indicating how transparent to make the color. The maximum color value (only used when orig.col is an rgb vector) Examples # Diagram of some examples plot(1, ylim = c(0, 1), xlim = c(0, 12), bty = "n", xaxt = "n", yaxt = "n", ylab = "", xlab = "", type = "na") text(6,.9, "transparent('red', trans.val = x)") points(x = 1:11, y = rep(.8, 11), pch = 16, col = transparent("red", seq(0, 1,.1)), cex = 2) text(x = 1:11, y = rep(.85, 11), seq(0, 1,.1)) text(6,.7, "transparent('red', trans.val = x)") points(x = 1:11, y = rep(.6, 11), pch = 16, col = transparent("blue", seq(0, 1,.1)), cex = 2) text(x = 1:11, y = rep(.65, 11), seq(0, 1,.1)) text(6,.5, "transparent('forestgreen', trans.val = x)") points(x = 1:11, y = rep(.4, 11), pch = 16, col = transparent("forestgreen", seq(0, 1,.1)), cex = 2) text(x = 1:11, y = rep(.45, 11), seq(0, 1,.1)) text(6,.3, "transparent('orchid1', trans.val = x)") points(x = 1:11, y = rep(.2, 11), pch = 16, col = transparent("orchid1", seq(0, 1,.1)), cex = 2) text(x = 1:11, y = rep(.25, 11), seq(0, 1,.1)) # Scatterplot with transparent colors

yarrr.guide 17 a.x <- rnorm(100, mean = 0, sd = 1) a.y <- a.x + rnorm(100, mean = 0, sd = 1) par(mfrow = c(3, 3)) for(trans.val.i in seq(0,.1, length.out = 9)) { } plot(a.x, a.y, pch = 16, col = transparent("blue", trans.val.i), cex = 1.5, xlim = c(-5, 5), ylim = c(-5, 5), xlab = "x", ylab = "y", main = paste("trans.val = ", round(trans.val.i, 2), sep = "")) yarrr.guide Opens the HTML manual for the yarrr package Opens the HTML manual for the yarrr package yarrr.guide()

Index Topic apa apa, 2 Topic colors piratepal, 7 transparent, 16 Topic datasets auction, 3 BeardLengths, 3 capture, 4 diamonds, 5 examscores, 5 movies, 6 pirates, 12 pirateserrors, 13 pircharter, 14 poopdeck, 14 Topic misc yarrr.guide, 17 Topic plot pirateplot, 8 recodev, 15 transparent, 16 yarrr.guide, 17 apa, 2 auction, 3 BeardLengths, 3 capture, 4 diamonds, 5 examscores, 5 movies, 6 piratepal, 7 pirateplot, 8 pirates, 12 pirateserrors, 13 pircharter, 14 poopdeck, 14 18