<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Box-plot on Chatomics</title>
    <link>https://divingintogeneticsandgenomics.com/tags/box-plot/</link>
    <description>Recent content in Box-plot on Chatomics</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>&amp;copy; 2018 Ming &#39;Tommy&#39; Tang</copyright>
    <lastBuildDate>Tue, 03 Jan 2017 10:57:00 -0800</lastBuildDate>
    
	<atom:link href="https://divingintogeneticsandgenomics.com/tags/box-plot/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>reorder boxplot according to median</title>
      <link>https://divingintogeneticsandgenomics.com/archive/reorder-boxplot-according-to-median/</link>
      <pubDate>Tue, 03 Jan 2017 10:57:00 -0800</pubDate>
      
      <guid>https://divingintogeneticsandgenomics.com/archive/reorder-boxplot-according-to-median/</guid>
      <description>reorder factors for boxplot It is very common that you want to reorder the boxplot according to the medians to see a better trend. I will show you how to do it using ggplot2 and the forcats packages which are developed by Hadely Wickham.
Read his new R for data science book: http://r4ds.had.co.nz/factors.html
head(iris)                   Sepal.</description>
    </item>
    
    <item>
      <title>How to make a box-plot with jittered points for multiple groups</title>
      <link>https://divingintogeneticsandgenomics.com/archive/how-to-make-a-box-plot-with-jittered-points-for-multiple-groups/</link>
      <pubDate>Thu, 05 Nov 2015 14:17:00 -0800</pubDate>
      
      <guid>https://divingintogeneticsandgenomics.com/archive/how-to-make-a-box-plot-with-jittered-points-for-multiple-groups/</guid>
      <description>Make a box-plot with jittered points for multiple groups using ggplot2 Let me demonstrate it with an example. Use the ToothGrowth data set in the ggplot2 library
library(ggplot2) ggplot(ToothGrowth, aes(x=as.factor(dose), y=len, color=supp)) + geom_boxplot(position=position_dodge(0.9))+ geom_jitter(position=position_dodge(0.9)) + xlab(&amp;quot;dose&amp;quot;)  I want to make the points separate from each other rather than on the same vertical line.
ggplot(ToothGrowth, aes(x= as.factor(dose), y=len, color= supp,fill= supp)) + geom_point(position=position_jitterdodge(dodge.width=0.9)) + geom_boxplot(fill=&amp;quot;white&amp;quot;, alpha=0.1, outlier.colour = NA, position = position_dodge(width=0.</description>
    </item>
    
  </channel>
</rss>