1075 search results for "how to import image file to R"

The Unavoidable Instability of Brand Image

June 4, 2014
By
The Unavoidable Instability of Brand Image

"It may be that most consumers forget the attribute-based reasons why they chose or rejected the many brands they have considered and instead retain just a summary attitude sufficient to guide choice the next time."This is how Dolnicar and Rossiter con...

Read more »

Importing 100 years of climate change into R

May 5, 2014
By
Importing 100 years of climate change into R

This is a flashback post, I was working on species distribution shifts over the last 40 years last summer and recently Rémi Genevest contacted me asking me how I managed to import the CRU TS 1.2 dataset into R. As always a more readable version of the code can be found here. At that time I

Read more »

Converting shapefiles to rasters in R

May 1, 2014
By
Converting shapefiles to rasters in R

I’ve been doing a lot of analyses recently that need rasters representing features in the landscape. In most cases, these data have been supplied as shapefiles, so I needed to quickly extract parts of a shapefile dataset and convert them … Continue reading →

Read more »

Shape File Selfies in ggplot2

April 11, 2014
By
Shape File Selfies in ggplot2

In this post you will learn how to: Create your own quasi-shape file Plot your homemade quasi-shape file in ggplot2 Add an external svg/ps graphic to a plot Change a grid grob's color and alpha *Note get simple .md version … Continue reading →

Read more »

It is time for RData files to become the standard for Data Transfer

March 20, 2014
By
It is time for RData files to become the standard for Data Transfer

(This article was first published on Econometrics by Simulation, and kindly contributed to R-bloggers) It is time Rdata files become the primary means of disseminating publicly available data online. 1. R is the most efficient Statistical software at compressing data I was recently attempting to download weather data from the US government and found myself stymied because the dataset...

Read more »

Remotely deleting files from R

February 23, 2014
By
Remotely deleting files from R

Sometimes programs generate a LOT of files while running scripts. Usually these are important (why else would you be running the script?). However, sometimes scripts generate mountains of temporary files to create summary outputs that aren’t really useful in their … Continue reading →

Read more »

Shapefile Polygons Plotted on Google Maps Using ggmap in R – Throw some, throw some STATS on that map…(Part 2)

February 20, 2014
By
Shapefile Polygons Plotted on Google Maps Using ggmap in R – Throw some, throw some STATS on that map…(Part 2)

Well it’s been long enough since my last post. Had a few things on my plate (vacation, holidays, another holiday, some more holidays, and quite a lot of research). March is almost here but the good news is that I have plenty of work stored up to start serving out some intuitive approaches for learning

Read more »

Add a background png image to ggplot2

February 16, 2014
By
Add a background png image to ggplot2

Hey everybody, this is just a short post but I found it very useful. I want to show you how to add images as a background to your ggplot2 plots. To do so we need the packages png and grid Btw, this is just a cool and fast way to import different packages at once. …

Read more »

Importing bathymetry and coastline data in R

January 25, 2014
By
Importing bathymetry and coastline data in R

After noticing some frustrating inaccuracies with the high-resolution world coastlines and national boundaries database found in worldHires from the package mapdata (based on CIA World Data Bank II data), I decided to look into other options. Although listed as "depreciated", the data found in NOAAs online "Coastline Extractor" is a big step forward. There...

Read more »

Fast-track publishing using knitr: exporting images for sharing and press (part III)

January 7, 2014
By
Fast-track publishing using knitr: exporting images for sharing and press (part III)

(This article was first published on G-Forge » R, and kindly contributed to R-bloggers) Images can be a powerful medium if used right. The image is CC by alemdag. Fast-track publishing using knitr is a short series on how I use knitr to speedup publishing in my research. This is the third article in the series devoted to plots....

Read more »