Blog Archives

Antipredator behavior with R (or why wildebeest should stay together)

July 23, 2018
By
Antipredator behavior with R (or why wildebeest should stay together)

Hi there!  In 2010, when I was studying my Biology Degree at Universidad Complutense in Madrid, I fell in love with a documentary miniseries called Great Migrations(National Geographic). Their episodes talk about awesome migrations of animals around the globe. One of these chapters is “Great Migrations: Science Of Migrations”. It shows how scientists study the patterns and processes of...

Read more »

New rWind release on CRAN! (v1.0.2)

July 4, 2018
By
New rWind release on CRAN! (v1.0.2)

Hi there!Just a few lines to inform you about the new release of rWind R package (v1.0.2). This version have several new features. Here you have an example of one of them, the function wind.dl_2 to download time series of wind data. In this example we create a bunch of PNG files to be converted later into a GIF...

Read more »

Simulating animal movements and habitat use

Simulating animal movements and habitat use

 Hi there! I was training some ways to simulate animal (or other organisms) movements having into account habitat suitability. To do this, I used my previous eWalk model as the underlying process to simulate random or directional walks. This model is based on Brownian / Ornstein–Uhlenbeck process. You can find more about eWalk model here! Today, I will add one more...

Read more »

Nice ggplot with sad data: something happens with women in science

March 14, 2018
By
Nice ggplot with sad data: something happens with women in science

       Last March 8, millions of women in more than 170 countries around the world joined street protests calling for "a society free of sexist oppression, exploitation and violence". Spanish strike was one of the most numerous, where around 5.3 million women joined the strike. Today, I will use some data (download) regarding the scientific career in Spain (2016)...

Read more »

Brownian Motion GIF with R and ImageMagick

December 9, 2017
By
Brownian Motion GIF with R and ImageMagick

Hi there! Last Monday we celebrated a “Scientific Marathon” at Royal Botanic Garden in Madrid, a kind of mini-conference to talk about our research. I was talking about the relation between fungal spore size and environmental variables such as temperature and precipitation. To make my presentation more friendly, I created a GIF to explain the Brownian Motion model. In evolutionary...

Read more »

Computing wind average in an area using rWind

December 5, 2017
By
Computing wind average in an area using rWind

Hi all! A researcher asked me last week about how to compute wind average for an area using rWind. I wrote a simple function to do this using dplyr library (following the advice of my friend Javier Fajardo). The function will be added to rWind package as soon as possible. Meanwhile, you can test the results... enjoy! # First, charge...

Read more »

niceOverPlot, or when the number of dimensions does matter

niceOverPlot, or when the number of dimensions does matter

  Hi there!    Over the last few months, my lab-mate Irene Villa (see more of her work here!) and I, have been discussing ecological niche overlap. The niche concept dates back to ideas first proposed by ornithologist J. Grinnell (1917). Later on, G.E. Hutchinson (1957) defined the ecological niche of a species as the n-dimensional hyper-volume of ecological...

Read more »

rWind R package released!

December 4, 2016
By
rWind R package released!

Hi there!  Let me introduce you rWind, an R package with several tools for downloading, editing and converting wind data from Global Forecast System (https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs) in other formats as raster for GIS! Wind data is a powerful source of information that could be used for many purposes in biology and other sciences: from the design of air pathways for airplanes...

Read more »

eWalk, an R function to simulate two-dimensional evolutionary walks

November 2, 2016
By
eWalk, an R function to simulate two-dimensional evolutionary walks

Hey there!  During last months, I was thinking with my friend Javi Fajardo (see his work here!) a little bit more about Brownian / OU process and their applications in biology. Remember that an OU model describes a stochastic Markov process that consist of two parts: first, a Brownian motion (random walk) model that represents a completely random process of...

Read more »

eMotion, an R function for evolutionary motion of character values

July 10, 2016
By
eMotion, an R function for evolutionary motion of character values

Hi all! Some time ago, I was studying an article from Tamara Münkemüller et al. 2015: "Phylogenetic niche conservatism – common pitfalls and ways forward". It´s a nice study where the ability of current tools in order to identify the evolutionary model that drives the changes in a trait (in this case, an ecological suitability) is discussed. They simulate the evolution...

Read more »

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)