50 likes | 136 Views
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
E N D
iPlots – interactive graphics“selection” feature GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Samantha Oliver
iPlotsinstall.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!
iplot(x, y) ihist(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 Selection can either be done manually by drawing a box on the graph, or through code:iset.select(table$fish>= 40) If selection is done manually, you can retrieve the indices that were selected through code iset.selected() 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)))