May 2018

Le Monde puzzle [#1051]

May 17, 2018 | xi'an

A combinatoric Le Monde mathematical puzzle of limited size: When the only allowed move is to switch two balls from adjacent boxes, what is the minimal number of moves to return all balls in the above picture to their respective boxes? Same question with six boxes and 12 balls. The question ...
[Read more...]

Violin and density plots in ggplot2

May 17, 2018 | Gary Hutson

Violin Plots This chart is a combination of a Box Plot and a Density Plo that is rotated and placed on each side, to show the distribution shape of the data. The thick black bar in the centre represents the interquartile range, the thin black line extended from it represents ...
[Read more...]

Tuning xgboost in R: Part I

May 16, 2018 | insightr

By Gabriel Vasconcelos Before we begin, I would like to thank Anuj for kindly including our blog in his list of the top40 R blogs! Check out the full list at his page, FeedSpot! Introduction Tuning a Boosting algorithm for … Continue reading →
[Read more...]

Laser Beams and Elliptical Billiards: Euler Problem 144

May 16, 2018 | Peter Prevos

This article provides a solution in the R language for Euler Problem 144: How many times does a laser bounce inside an elliptical mirror before the light beam exits it? We can use the solution to this problem to simulate elliptical billiard tables. Continue reading → The post Laser Beams and Elliptical ...
[Read more...]

Highly Similar Texts

May 16, 2018 | Johannes B. Gruber on Johannes B. Gruber

A while ago I was building a database of newspaper articles retrieved from LexisNexis for a research project in which I was working as a research assistant. At some point we noticed that we seemed to have a lot of duplicates in our database. I had already removed the duplicates ... [Read more...]

Highly Similar Texts

May 16, 2018 | Johannes B. Gruber on Johannes B. Gruber

Available solutions: the accurate one Available solutions: the fast one Divide and conquer Implementation in LexisNexisTools A while ago I was building a database of newspaper articles retrieved from LexisNexis for a research project in which I was working as a research assistant. At some point we noticed that we ... [Read more...]

Ctextclassics, my First Package

May 16, 2018 | Posts on Anything Data

My latest update is a milestone! I have authored my first ever R package which is an API caller for ctext.org. Ctext hosts numerous pre-modern Chinese texts and my package makes them available to you. The scope is broad, but think philosophical works in Confucianism, Daoism, Legalism, military doctrines, ... [Read more...]

General gems of comperes

May 16, 2018 | QuestionFlow

Examples of exported functions from comperes package that could be useful for general tasks. Prologue I am very glad to announce that my new package comperes is on CRAN now. It provides tools for managing competition results in a tidy manner as much as possible. For more information go to: ... [Read more...]

treeio: Phylogenetic data integration

May 16, 2018 | rOpenSci - open tools for open science

Phylogenetic trees are commonly used to present evolutionary relationships of species. Newick is the de facto format in phylogenetic for representing tree(s). Nexus format incorporates Newick tree text with related information organized into separated units known as blocks. For the R community, we have ape and phylobase packages to ...
[Read more...]

maximal spacing around order statistics

May 16, 2018 | xi'an

The riddle from the Riddler for the coming weeks is extremely simple to express in mathematical terms, as it summarises into characterising the distribution of when the n-sample is made of iid Normal variates. I however had a hard time finding a result connected with this quantity since most available ...
[Read more...]

Ready Made Plots make Work Easier

May 16, 2018 | John Mount

A while back Simon Jackson and Kara Woo shared some great ideas and graphs on grouped bar charts and density plots (link). Win-Vector LLC‘s Nina Zumel just added a graph of this type to the development version of WVPlots. Nina has, as usual, some great documentation here. More and ...
[Read more...]

Box Plots in ggplot2

May 16, 2018 | Gary Hutson

Setting up the plot The box plot, in ggplot2, can be really powerful and useful for analysing variation. I will show a few examples of different types of box plots in ggplot2. Basic Box Plot library(ggplot2) theme_set(theme_classic()) # Plot plot [Read more...]

Cleaning up tables

May 16, 2018 | Abhijit

This post is re-published from my blog Context One of things I have to do quite often is create tables for papers and presentations. Often the “Table 1” of a paper has descriptives about the study, broken down by subgroups. For presentation purposes, it doesn’t look good (to me, at ... [Read more...]

Histogram with auto binning in ggplot2

May 16, 2018 | Gary Hutson

Histograms (with auto binning) Again, we will use the mtcars dataset and use the fields in that to produce the chart, as we are doing this there is nothing to do on the data preparation side. That leaves us to have fun with the plot. Building the Histogram with auto ... [Read more...]

Installation to connect Spark and H2O in R

May 16, 2018 | Sébastien Rochette

In the ThinkR Task force, we love playing with H2O in R. Their algorithms for machine learning are really powerful. Combined with Apache Spark through Sparkling Water, H2O provides even more powerful data processing workflows, which you can run on your own laptop. Installing Spark and H2O ... [Read more...]
1 6 7 8 9 10 16

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)