IPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18,...
-
Upload
eustacia-stanley -
Category
Documents
-
view
213 -
download
1
Transcript of IPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18,...
![Page 1: IPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Samantha Oliver.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f115503460f94c23d86/html5/thumbnails/1.jpg)
iPlots – interactive graphics“selection” feature
GLEON Fellowship WorkshopJanuary 14-18, 2013
Sunapee, NHSamantha Oliver
![Page 2: IPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Samantha Oliver.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f115503460f94c23d86/html5/thumbnails/2.jpg)
iPlots install.packages(“iplots”)
• Interactive graphing package that can be used to make histograms, scatterplots, boxplots, ets
• Similar language to R graphing, but has interactive features:• Arrow up/down for
increase/decrease bin size, point size, etc.
• Arrow left/right for increase/decrease transparency
• Dropdown menus allow color selection of groups/points
![Page 3: IPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Samantha Oliver.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f115503460f94c23d86/html5/thumbnails/3.jpg)
Skill relevance/usefulness
Skill: finding packages that will suit your needs! (that is, iPlots is really easy to use once you figure it out)
Usefulness: data exploration
Maybe there’s a pattern overall…but…
What about all of these lakes with high zooplankton diversity and low fish diversity? What do these lakes have in common?
To answer this question, you can manually look at the data, write code to explore the data…but an easier way is to use iPlots!
![Page 4: IPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Samantha Oliver.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f115503460f94c23d86/html5/thumbnails/4.jpg)
ihist(x, y) iplot(x, y)
Drawing a box around specific data points creates a “selection”
“selection” of data points on one graph
selects same observations on all
active graphs
![Page 5: IPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Samantha Oliver.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f115503460f94c23d86/html5/thumbnails/5.jpg)
“Selection” features
1. Selection can either be done manually by drawing a box on the graph, or through code:iset.select(table$fish>= 40)
2. If selection is done manually, you can retrieve the indices that were selected through code iset.selected()
3. Your selections can also be used to perform functions only on selected dataiabline(lm(table$fish ~ table$crust_zooplankton, subset=iset.select(table$fish <= 40)))