iplots – interactive graphics “selection” feature gleon fellowship workshop january 14-18,...

Post on 04-Jan-2016

213 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

iPlots – interactive graphics“selection” feature

GLEON Fellowship WorkshopJanuary 14-18, 2013

Sunapee, NHSamantha 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

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!

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

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

top related