title: Scale outlier data to normalized data for visualization in R
body: <p>I'm working with some data that has a few major outliers, mostly due to the technology used to capture the data. I removed these to normalize the data; however, for the nature of the work, I've been asked to visualize every participant's results in a series of graphs in order to compare performances. I'm a little new to R, so while the normalization wasn't difficult, I'm a little stumped as to how I might go about re-introducing these outliers to the scale of the normalized data. Is there a way to scale outliers to previously normalized data (mean=0) without skewing the data? </p>
  
  <p>EDIT: I realize I left a lot of info out (still new to asking questions here), so here's an example of what my process looks like right now:</p>
  
  <pre><code>#example data of 20 participants, 18 of which are normal-range and 2 of which 
  #are outliers in a data frame
  time &lt;- rnorm (18, mean = 30, sd = 10)
  distance &lt;- rnorm(18, mean = 100, sd = 20)
  time &lt;- c(time, 2, 100)
  distance &lt;- c(distance, 30, 1000)
  df &lt;- data.frame(time, distance)
  </code></pre>
  
  <p>The outliers were mostly known due to the nature of the data collection, so removed them:</p>
  
  <pre><code>dfClean &lt;- df[-c(19, 20),]
  </code></pre>
  
  <p>And plotted the data to check for normalcy after (step skipped here because data was generated to be normal). 
  From there, I normalized the columns in the data set so that each variable would have a mean of 0 and a st of 1 so they could be plotted together. The goal is to use this as a "normal" range to be able to visualize spread and outliers in future data (accent on visualization).</p>
  
  <pre><code>#using package clusterSim
  dfNorm &lt;- data.Normalization(dfClean, type="n13", normalization = "column")
  </code></pre>
  
  <p>The problem is, I'm not sure how to scale outliers to this range afterwards...or if I'm even understanding the scale function correctly. So, how do I plot all the subjects in the original df, including outliers, on a normalized mean=0 scale? </p>