Skip to content

Commit 4cbd535

Browse files
committed
fix error in geom_smooth
1 parent c7e43e8 commit 4cbd535

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

docs/examples/geoms/geom_smooth.jl

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,8 @@ ggplot(penguins, @aes(x = bill_length_mm, y = bill_depth_mm, color = species)) +
9999

100100
ggplot(penguins, @aes(x = bill_length_mm, y = bill_depth_mm)) +
101101
geom_point(alpha = 0.2) +
102-
geom_smooth(color = :blue, linewidth = 2) +
103-
geom_smooth(method = "lm", color = :red, linewidth = 2, linestyle = :dash)
104-
105-
# ## Using with Facets
106-
107-
# Smooth lines work well with faceting to show trends in subgroups:
108-
109-
ggplot(penguins, @aes(x = bill_length_mm, y = bill_depth_mm)) +
110-
geom_point(alpha = 0.3) +
111-
geom_smooth(method = "lm") +
112-
facet_wrap(:species)
102+
geom_smooth(color = :blue) +
103+
geom_smooth(method = "lm", color = :red)
113104

114105
# ## Handling Noisy Data
115106

0 commit comments

Comments
 (0)