diff --git a/good-to-know.md b/good-to-know.md new file mode 100644 index 0000000..9b37b50 --- /dev/null +++ b/good-to-know.md @@ -0,0 +1,15 @@ +# Good things to know + +## Diagram + +### Esquisse + +För att starta esquisse ````esquisse::esquisser(viewer = "browser")```` + +### Diagramstyper + +Olika diagram typer: + +* geom_boxplot +* geom_point +* geom_col diff --git a/lektion1/Lektion_1.qmd b/lektion1/Lektion_1.qmd index 3faa1d2..e487abc 100644 --- a/lektion1/Lektion_1.qmd +++ b/lektion1/Lektion_1.qmd @@ -191,6 +191,7 @@ bike %>% select(member) %>% summary() ### Klistra in koden från ggplot builder nedan ggplot(bike) + + ggtitle("Antal uthyrning per sässong") + aes(x = season, y = total) + geom_boxplot(fill = "#112446") + theme_minimal() @@ -237,8 +238,10 @@ Jag får extra pressision med 1 decimal? ```{r rentals vs temp} ggplot(bike) + + ggtitle("Rentals per temperatur") + aes(x = tempC, y = total) + geom_point(colour = "#00CC00") + + geom_smooth(se = FALSE) + theme_minimal() ```