Skip to content

Commit

Permalink
#31: chris_doe.R, relocate 'color' aes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Jun 4, 2018
1 parent 0500d68 commit 8b67d52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chris_doe.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ gg_full_adjusted <- ggplot(data.m.adjusted.sub, aes(x=factor(1), y=net_time)) +
labs(x = 'State', y = 'Net Time (seconds)', title = 'Full Data: Net Time vs. State') +
theme(plot.title = element_text(hjust = 0.5))

gg_segregate_adjusted <- ggplot(data.m.adjusted.sub, aes(x=state, y=net_time, color=state)) +
geom_violin(trim=FALSE, aes(fill=state)) +
gg_segregate_adjusted <- ggplot(data.m.adjusted.sub, aes(x=state, y=net_time)) +
geom_violin(trim=FALSE, aes(fill=state, color=state)) +
scale_fill_manual(values=color_scale) +
scale_color_manual(values=color_scale) +
geom_boxplot(width=0.75) +
Expand Down Expand Up @@ -208,8 +208,8 @@ gg_full_complete <- ggplot(data.m.complete.sub, aes(x=factor(1), y=net_time)) +
labs(x = 'State', y = 'Net Time (seconds)', title = 'Full Data: Net Time vs. State') +
theme(plot.title = element_text(hjust = 0.5))

gg_segregate_complete <- ggplot(data.m.complete.sub, aes(x=state, y=net_time, color=state)) +
geom_violin(trim=FALSE, aes(fill=state)) +
gg_segregate_complete <- ggplot(data.m.complete.sub, aes(x=state, y=net_time)) +
geom_violin(trim=FALSE, aes(fill=state, color=state)) +
scale_fill_manual(values=color_scale) +
scale_color_manual(values=color_scale) +
geom_boxplot(width=0.75) +
Expand Down

0 comments on commit 8b67d52

Please sign in to comment.