1786 search results for "ggplot2"

Levenshtein distance in C++ and code profiling in R

March 25, 2012
By
Levenshtein distance in C++ and code profiling in R

At work, the client requested, if existing search engine could accept singular and plural forms equally, e. g. “partner” and “partners” would lead to the same result. The first option – stemming. In that case, search engine would use root of a word, e. g. “partn”. However, stemming has many weaknesses: two different words might have same root, a

Read more »

Linking apple liking to sensory

March 24, 2012
By
Linking apple liking to sensory

Previously it was seen that apple liking was related to consumers scores for juiciness and sweetness. It would be most nice if these scores can be linked to sensory scores. Thus a three block model would result:A block with sensory data describing how ...

Read more »

Forecasts and ggplot

March 22, 2012
By

The forecast package uses the base R graphics for all plots, but some people may prefer to use the nice graphics available using the ggplot2 package. In the following two posts, Frank Davenport shows how it can be done: Plotting forecast() objects in ...

Read more »

Plotting forecast() objects in ggplot part 2: Visualize Observations, Fits, and Forecasts

March 21, 2012
By
Plotting forecast() objects in ggplot part 2: Visualize Observations, Fits, and Forecasts

In my last post I presented a function for extracting data from a forecast() object and formatting the data so that it can be plotted in ggplot.  The scenario is that you are fitting a model to a time series object with training data, then forecas...

Read more »

Plotting forecast() objects in ggplot part 2: Visualize Observations, Fits, and Forecasts

March 21, 2012
By
Plotting forecast() objects in ggplot part 2: Visualize Observations, Fits, and Forecasts

In my last post I presented a function for extracting data from a forecast() object and formatting the data so that it can be plotted in ggplot.  The scenario is that you are fitting a model to a time series object with training data, then forecas...

Read more »

Bare-bones intro to Plotting options in R

March 21, 2012
By
Bare-bones intro to Plotting options in R

If you’re using base::plot in R for the first time (for example if you do plot(pima) or plot(faithful) (use ??pima if you can’t find the dataset)) you may have looked at ?plot (2 page help file) or ?par (12 page help file) to figure out what’s go...

Read more »

Nordic Countries Dominate the World in Internet Penetration

March 21, 2012
By
Nordic Countries Dominate the World in Internet Penetration

Something about that cold weather... The number of internet users in the Nordic countries has greatly outpaced the world by comparison. Denmark, Iceland, Norway, Sweden, Finland - all in the elite echelon. These countries share a common ancestry -...

Read more »

Monty Hall Simulations

March 20, 2012
By

Using R I'm doing a lot of simulations of the classic monty hall-problem and plotting multiple simulations using ggplot2.

Read more »

A graphical overview of your MySQL database

March 18, 2012
By
A graphical overview of your MySQL database

If you use MySQL, there’s a default schema called ‘information_schema‘ which contains lots of information about your schemas and tables among other things. Recently I wanted to know whether a table I use for storing the results of a large … Continue reading →

Read more »

Liking of apples – more than juiciness

March 18, 2012
By
Liking of apples – more than juiciness

In a previous blog it was shown using literature data that liking of apples was related to juiciness. However, there were some questionsIs the relation linear or slightly curved? The variation in liking around CJuiciness is large. Are more explana...

Read more »