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

My template for controlling publication quality figures

January 28, 2013
By
My template for controlling publication quality figures

The following is a template that I usually start with when producing figures for publication. It allows me to control:The overall size of the figure (in inches) (WIDTH, HEIGHT)The layout of figure subplots (using the layout() function) (LO)The resoluti...

Read more »

A slightly different introduction to R, part II

January 27, 2013
By
A slightly different introduction to R, part II

In part I, we looked at importing data into R and simple ways to manipulate data frames. Once we’ve gotten our data safely into R, the first thing we want to do is probably to make some plots. Below, we’ll make some simple plots of the made-up comb gnome data. If you want to play

Read more »

R and foreign characters

January 25, 2013
By
R and foreign characters

Working with Russian characters can be mind-numbingly frustrating. This is true for R, as for other applications, so below I've written out the my top five tricks for making Russian inputs work in R; i believe they should be transferable to most other languages....

Read more »

Maps in R: choropleth maps

January 23, 2013
By
Maps in R: choropleth maps

This is the third article of the Maps in R series. After having shown how to draw a map without placing data on it and how to plot point data on a map, in this installment the creation of a … Continue reading →

Read more »

Management of Research Data – a Shell+Python+Excel+R Approach

January 23, 2013
By
Management of Research Data – a Shell+Python+Excel+R Approach

I am a computer science researcher, usually working on both Windows and Linux system. Windows is the place where I do the document work, like reading paper, browsing the internet, writing papers with LaTex… Linux is where I run and generate experimental results. The Chaos After years of messy data management and recent data chaos,

Read more »

Going Beyond Florence Nightingale’s Data Diagram: Did Flo Blow It with Wedges?

January 23, 2013
By
Going Beyond Florence Nightingale’s Data Diagram: Did Flo Blow It with Wedges?

In 2010, I wrote a short blog item about Florence Nightingale the statistician, solely because of its novelty value. I didn't even bother to look closely at the associated graphic she designed, but that's what I intend to do here. In this first installment, I reflect on her famous data visualization by reconstructing it...

Read more »

Reducing Respondent Burden: Item Sampling

January 22, 2013
By
Reducing Respondent Burden: Item Sampling

You received confirmation this morning.  Someone made a mistake programming that battery of satisfaction ratings on your online survey.  Instead of each respondent rating all 12 items using a random rotation, only six randomly selected i...

Read more »

Data fishing: R and XML part 2

January 21, 2013
By
Data fishing: R and XML part 2

I’m constantly amazed at what can be done using free software, such as R, and more importantly, what can be done with data that are available on the internet. In an earlier post, I confessed to my sedentary lifestyle immersed in code, so my opinion regarding the utility of open-source software is perhaps biased. None

Read more »

Looking to boxplots (Shootout 2012)

January 20, 2013
By
Looking to boxplots (Shootout 2012)

Boxplots are a nice way to compare the three sample sets of the Shoot-out 2012 data files.There is a category variable (Set) in the data frame with the labels (Cal = Training Set, Test = Test Set and Val = Validation Set). # IMPORTING THE SAMPLE SETS #...

Read more »

texreg: A package for beautiful and easily customizable LaTeX regression tables from R

January 20, 2013
By
texreg: A package for beautiful and easily customizable LaTeX regression tables from R

There was a very informative post last week showing how the R package stargazer is used to generate nice LaTeX tables from a number of R objects. This package looks very useful. However, I would like to extol the virtues of another R package that converts model objects in R into LaTeX code: texreg. For

Read more »