Etikettarkiv: ggplot2

Using R: barplot with ggplot2

Ah, the barplot. Loved by some, hated by some, the first graph you’re likely to make in your favourite office spreadsheet software, but a rather tricky one to pull off in R. Or, that depends. If you just need a … Läs mer

Publicerat i computer stuff, data analysis, english | Märkt , , , , | 2 kommentarer

Using R: correlation heatmap, take 2

Apparently, this turned out to be my most popular post ever.  Of course there are lots of things to say about the heatmap (or quilt, tile, guilt plot etc), but what I wrote was literally just a quick celebratory post … Läs mer

Publicerat i computer stuff, data analysis, english | Märkt , , , | 3 kommentarer

Books and lessons about ggplot2

I recently got an email from a person at Packt publishing, who suggested I write a book for them about ggplot2. My answer, which is perfectly true, is that I don’t have the time, nor the expertise to do that. … Läs mer

Publicerat i computer stuff, data analysis, english | Märkt ,

Using R: Coloured sizeplot with ggplot2

Someone asked about this and I though the solution with ggplot2 was pretty neat. Imagine that you have a scatterplot with some points in the exact same coordinates, and to reduce overplotting you want to have the size of the … Läs mer

Publicerat i computer stuff, data analysis, english | Märkt , , , | 8 kommentarer

A slightly different introduction to R, part V: plotting and simulating linear models

In the last episode (which was quite some time ago) we looked into comparisons of means with linear models. This time, let’s visualise some linear models with ggplot2, and practice another useful R skill, namely how to simulate data from … Läs mer

Publicerat i computer stuff, data analysis, english | Märkt , , , , | 4 kommentarer

R intro seminars, take 2: some slides about data frames, linear models and statistical graphics

I am doing a second installment of the lunch seminars about data analysis with R for the members of the Wright lab. It’s pretty much the same material as before — data frames, linear models and some plots with ggplot2 … Läs mer

Publicerat i computer stuff, data analysis, english | Märkt , , , | Lämna en kommentar

Using R: drawing several regression lines with ggplot2

Occasionally I find myself wanting to draw several regression lines on the same plot, and of course ggplot2 has convenient facilities for this. As usual, don’t expect anything profound from this post, just a quick tip! There are several reasons … Läs mer

Publicerat i computer stuff, data analysis | Märkt , , , | 2 kommentarer