mg14's favourite functions

colTrans | A pseudo transparency to a color |

donut | Plot a donut |

entropy | Compute entropy (base e) from a vector of probabilities |

mergeLevels | Merge levels of a factor |

na.mean | Replace NAs with mean |

na.zero | Replace NAs with zeros |

numericalize | Function to convert factors to numeric |

rotatedLabel | Plot a rotated axis label |

sig2star | Function to transform P-values into symbols of significance... |

stars | Stars plot |

violinJitter | Jitter by violins |

violinJitterPlot | Violins plot with jittered data points |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.