IPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18,...

5
iPlots – interactive graphics “selection” feature GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Samantha Oliver

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.

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.

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.

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.

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.

“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)))