edaPlot (openintro package)

edaPlot(dataFrame)
Use an interactive, exploratory plot function with a click-interface and eight graphing options. The type of plots generated are printed out in the console. To exit, click "exit" on the plot.
  • dataFrame – A data frame.

Example. Before using edaPlot, two outliers that truly don’t belong are removed from the marioKart data set, which is a data set concerning Ebay auctions of Mario Kart games on Ebay. (See Chapter 8 of OpenIntro Statistics.) By clicking on the options (axes left of variables or the plotting types), I generated seven interesting exploratory plots in under 2 minutes without any typing.
> 
> #install.packages("openintro")
> library(openintro)
Please visit openintro.org for free statistics
materials

Attaching package: ‘openintro’

The following object(s) are masked from ‘package:datasets’:

    cars

> 
> data(marioKart)
> mk <- marioKart[marioKart$totalPr < 100,]
> edaPlot(mk)
warning: x and/or y is not numerical, i.e. this plot may not look like a scatterplot.
x-y
x-y
warning: x and/or y is not numerical, i.e. this plot may not look like a scatterplot.
x-y
x-y
warning: x and/or y is not numerical, i.e. this plot may not look like a scatterplot.
x-y
warning: x and/or y is not numerical, i.e. this plot may not look like a scatterplot.
plot
x was put into a table before being loaded into barplot().
plot
plot
x-y
warning: data coerced into numeric status.
plot
x was put into a table before being loaded into barplot().
x-y
both variables put into tables before being loaded into barplot().
plot
plot
both variables put into tables before being loaded into barplot().
plot
plot
warning: variables must be numeric to fit a line.
x-y
warning: variables must be numeric to fit a line.
x-y
warning: variables must be numeric to fit a line.
x-y
exit
> 

Leave a Reply