1

My graph is functioning properly without facets and runs with facets, but classifies/wraps at least one individual incorrectly. I only noticed it because it is such an outlier. Everything else seems to be functioning properly. Without the facet_wrap, the top left-most point is "Typical" (this is confirmed through my data frame by just looking at it). With the facet_wrap, this point is now faceted with "Dyslexia." The same happens for facet_grid. All I'm doing to change between the two figures is deleting the last line of code here. I don't typically question R, but this is extra bizarre. Any ideas?

ggplot(x, aes(x$split1_FC, x$split2_FC, color = dys)) +
    geom_point(aes(colour = dys), size = 2) +
    geom_smooth(method = lm, se = F, color = 'black') +
    labs(x = 'Split 1', y = 'Split 2', title = paste('Reliability 
         of', component, 'split by', split)) +
    scale_color_discrete(name="Diagnosis") +
    theme_linedraw() +
    facet_wrap(x$dys) 

No Facets

Facets

bdemarest
  • 14,397
  • 3
  • 53
  • 56

0 Answers0