January 2016

Using sparklines in R projects

January 25, 2016 | Appsilon Data Science - R language

sticky noteFirst post on our blog! We welcome all data enthusiasts! Today we are going to show how to use tinny but useful library called sparkline. Sparkline itself is a small widget, using jQuery under the hood1. Both technologies - jQuery and the widget itselt are implemented in the JavaScript. ...
[Read more...]

I will survive!

January 25, 2016 | Gianluca Baio

Here's a very long post, to make up for the recent silence on the blog... Lately, I've been working on a new project involving the use of survival analysis data and results, specifically for health economic evaluation (cue Cake's rendition below). I have to say I'm not really a massive ... [Read more...]

I will survive!

January 25, 2016 | Gianluca Baio

Here's a very long post, to make up for the recent silence on the blog... Lately, I've been working on a new project involving the use of survival analysis data and results, specifically for health economic evaluation (cue Cake's rendition below).I hav... [Read more...]

RcppExamples 0.1.7

January 24, 2016 | Thinking inside the box

After an usually long hiatus, the RcppExamples package has been updated once more: a new version 0.1.7 is now on CRAN. The RcppExamples provides a handful of short examples detailing by concrete working examples how to set up basic R data structures ... [Read more...]

I will survive!

January 24, 2016 | R on Gianluca Baio

Here’s a very long post, to make up for the recent silence on the blog… Lately, I’ve been working on a new project involving the use of survival analysis data and results, specifically for health economic evaluation (cue Cake’s rendition below). I have to say I’m ... [Read more...]

More Fun with Choropleth Maps

January 24, 2016 | Julia Silge

I have a guest post up today at Ari Lamstein’s blog where I show some more fun things that can be done with the Religious Congregations and Membership Study at the ARDA that I used to look at Utah. I looked in some detail at Iowa ahead of their ... [Read more...]

The ‘rsvg’ Package: High Quality Image Rendering in R

January 24, 2016 | Jeroen Ooms

The new rsvg package renders (vector based) SVG images into high-quality bitmap arrays. The resulting image is an array of 3 dimensions: height * width * 4 (RGBA) and can be written to png, jpeg or webp format:
<span># create an svg image</span>
<span>library</span><span>(</span>svglite<span>)</span>
<span>library</span><span>(</span>ggplot2<span>)</span>
svglite<span>(</span><span>"plot.svg"</span><span>,</span> width <span>=</span> <span>10</span><span>,</span> height <span>=</span> <span>7</span><span>)</span>
qplot<span>(</span>mpg<span>,</span> wt<span>,</span> data <span>=</span> mtcars<span>,</span> colour <span>=</span> <span>factor</span><span>(</span>cyl<span>))</span>
dev.off<span>()</span>

<span># render it into a bitmap array</span>
<span>library</span><span>(</span>rsvg<span>)</span>
bitmap <span><-</span> rsvg<span>(</span><span>"plot.svg"</span><span>)</span>
<span>dim</span><span>(</span>bitmap<span>)</span>
<span>## [1] 504 720   4</span>

<span># write to format</span>
png<span>::</span>writePNG<span>(</span>bitmap<span>,</span> <span>"bitmap.png"</span><span>)</span>
jpeg<span>::</span>writeJPEG<span>(</span>bitmap<span>,</span> <span>"bitmap.jpg"</span><span>,</span> quality <span>=</span> <span>1</span><span>)</span>
webp<span>::</span>write_webp<span>(</span>bitmap<span>,</span> <span>"bitmap.webp"</span><span>,</span> quality <span>=</span> <span>100</span><span>)</span>
The advantage of storing your plots in svg format is they can be rendered later ...
[Read more...]

Writing fast asynchronous SGD/AdaGrad with RcppParallel

January 23, 2016 | Rcpp Gallery

Word embeddings After Tomas Mikolov et al. released word2vec tool, there was a boom of articles about words vector representations. One of the greatest is GloVe, which did a big thing by explaining how such algorithms work. It also refolmulates word2vec optimization as a special kind of factoriazation ...
[Read more...]

Some Comments on Donaho’s “50 Years of Data Science”

January 23, 2016 | matloff

An old friend recently called my attention to a thoughtful essay by Stanford statistics professor David Donaho, titled “50 Years of Data Science.” Given the keen interest these days in data science, the essay is quite timely. The work clearly shows that Donaho is not only a grandmaster theoretician, but also ... [Read more...]

RcppEigen 0.3.2.7.0

January 22, 2016 | Thinking inside the box

A new minor release of RcppEigen is now on CRAN and in Debian. It primarily upgrades to the recent 3.2.7 release of Eigen -- thanks once again to fine work by Yixuan Qiu. We also have one additonal PR by Alexey Stukalow who ensured that the fastLm() ... [Read more...]

RcppCCTZ 0.0.3

January 22, 2016 | Thinking inside the box

Bradley White from the upstream CCTZ team prepared some more changes in CCTZ itself -- so a new RcppCCTZ version got to CRAN the other day catching up with these changes. CCTZ is a C++ library for translating between absolute and civil times using th... [Read more...]

On Panel Sizes

January 22, 2016 | Florian Teschner

In the face of upcoming elections in the US and in Germany, polling is big news. One thing that strikes me as enormously missing in the debate is how inaccurate a single poll is. Moreover, one never reads about the uncertainty around a single poll. What is the range of ... [Read more...]

Running R jobs quickly on many machines

January 22, 2016 | John Mount

As we demonstrated in “A gentle introduction to parallel computing in R” one of the great things about R is how easy it is to take advantage of parallel processing capabilities to speed up calculation. In this note we will show how to move from running jobs multiple CPUs/cores ...
[Read more...]
1 2 3 4 5 6 17

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)