plot - Plotting in R 3.1.2 -


i have records of data account (say unique 400 records). each record has three different indications indicated premium. each record, concerned how indications compare each other. in cases, indications may relatively in line, while in other 3 indications volatile , different. these records have state associated them.

anyways, wondering if there nice way visualize record differences between 3 indications. also, whether or not there nice way visualize indication differences state (perhaps on map-like view in r??).

i have plotted distributions of each individual indication using density plots has been helpful, here asking visualization of differences between 1, 2, or 3 indications for each record. asking possible?

thank much.

perhaps you're after, easier if provide sample data , more descriptive in exact question asking:

library(ggplot2) library(dplyr) library(tidyr)  df <- data.frame(id = 1:400,                  state = state.abb,                   ind1 = rnorm(400),                  ind2 = rnorm(400),                  ind3 = rnorm(400))  df %>%   mutate(diff_1_2 = ind1 - ind2,          diff_1_3 = ind1 - ind3,          diff_2_3 = ind2 - ind3) %>%   gather(metric, value, -c(id, state)) %>%   filter(metric %in% c("diff_1_2", "diff_1_3", "diff_2_3")) %>%   ggplot(., aes(x = metric, y = value)) +   geom_boxplot() +   facet_wrap(~ state) 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -