marine global change ecology

at UMASS AMHERST

Main Menu

Skip to content
  • Posts
  • Research
    • Local adaptation
    • Biophysical Coupling
    • Climate Change and Species Interactions
    • Invasion Resistance
    • Marine Protected Areas
    • Marine Biogeography
  • Publications
  • R and Stats
  • members
    • Brian Cheng
    • Jordanna Barley
    • Andrew Villeneuve
    • Member resources
  • diversity
  • Opportunities
    • graduate students
    • undergrads
    • postdocs

Category Archives: R

Oceanography data with ‘OCE’ in R

October 8, 2017by bscheng12 Leave a comment

Oceanographers love two things. 1. Expensive equipment and 2. Matlab. I get the first one. I mean, who wouldn’t want to play with titantium 4km pressure rated CTDs or autonomous […]

Read Article →
Fun, R, Science

Modeling completely separated data in R

December 11, 2016by bscheng12 4 Comments

Complete separation occurs when data is perfectly discriminated by a predictor. Let me illustrate (literally, haha). You’ll notice that the y-axis is binary, there are only 0s and 1s. That’s […]

Read Article →
Fun, R, Science

Logistic Regression in R

October 23, 2016by bscheng12 1 Comment

My dog pants a lot. Don’t judge him. He’s brachycephalic (shorter skull/muzzle than other dogs), so he has issues thermoregulating. But he doesn’t always pant. Let me illustrate. Panting! Not […]

Read Article →
Fun, R, Science

Spatial data using ‘raster’ in R

October 22, 2016by bscheng12 2 Comments

There’s a lot of freely available data out there. Much of this data is spatial and derived from remote sensing platforms (e.g. satellites). Here’s a quick primer on using the […]

Read Article →
R, Research, Science

Stacked time series in R

October 17, 2016by bscheng12 Leave a comment

Stacked time series plots are cool. Vastly superior to double y-axis plots which are a big no no according to graph theory. Exhibit A and Exhibit B. If Hadley Wickham […]

Read Article →
R, Research, Science

converting wide to long format in R

October 2, 2015by bscheng12 Leave a comment

I’ve heard California is parched. Though, I wouldn’t know. I’m in Maryland now and we’re staring at Hurricane Joaquin who was threatening to wash the east coast into the Atlantic […]

Read Article →
R, Research, Science

LoveWins

June 26, 2015by bscheng12 Leave a comment

Courtesy dj patil Data sci & news today v/ @hadleywickham ggplot(data.frame(x=1:7),aes(x=1,y=x,fill=x))+geom_raster()+scale_fill_gradientn(colours=rainbow(7)) — dj patil (@dpatil) June 26, 2015

Read Article →
R

R Saved my marriage

May 21, 2014by bscheng12 Leave a comment

So a few weeks back, I lost my wedding ring. It’s pretty common for me to take it off (e.g. while doing field work, while fidgeting at my desk while […]

Read Article →
Fun, R

Modeling Logistic Growth Data in R

May 7, 2014by bscheng12 27 Comments

My dog rocks. Wilson is friendly to almost everyone (mailmen excepted) and he’s very soft. We’ve had him since he was a puppy and because the wife and I are […]

Read Article →
EGSA, R, Research, Science

Post navigation

Blog at WordPress.com.
  • Follow Following
    • marine global change ecology
    • Already have a WordPress.com account? Log in now.
    • marine global change ecology
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...