Skip to content

Commit

Permalink
remove grid in ch02-anscombe1.png
Browse files Browse the repository at this point in the history
  • Loading branch information
friendly committed Nov 16, 2023
1 parent c0639d1 commit 1cc3625
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion R/anscombe.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ ggplot(anscombe_long, aes(x = x, y = y)) +
scale_y_continuous(breaks = seq(0,12,2)) +
stat_ellipse(level = 0.5, color=col, type="norm") +
geom_label(data=desc, aes(label = label), x=6, y=12) +
facet_wrap(~dataset, labeller = label_both)
facet_wrap(~dataset, labeller = label_both) +
theme(panel.grid.major = element_blank(),
panel.grid.minor = element_blank())




Expand Down
2 changes: 1 addition & 1 deletion R/penguin/peng-ggplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ggplot(peng,
theme_penguins +
theme(legend.position = c(0.85, 0.15))

# remove points
# show ellipses, reg lines, no points
ggplot(peng,
aes(x = bill_length, y = bill_depth,
color = species, fill=species)) +
Expand Down
Binary file added figs/ch02-anscombe1-old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/ch02-anscombe1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1cc3625

Please sign in to comment.