Skip to content

Commit

Permalink
clean up in R
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigorijSchleifer committed Jul 29, 2024
1 parent c4f0582 commit 9fe0647
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 85 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"codesnap.target": "window",
"codesnap.containerPadding": "0.5em",
"codesnap.roundedCorners": true
}
28 changes: 27 additions & 1 deletion Diary.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@

<a href="https://github.com/GrigorijSchleifer/codeNewbie/tree/main/R">R</a>

Visualising exponential relationships

```R
# exponential relationship
df_exp <- data.frame(
normal = c(1:100),
exp = exp(1:100)
)

# normal logs view
df_exp %>%
ggplot(aes(normal, exp)) +
geom_point()

# y axis log10
df_exp %>%
ggplot(aes(normal, exp)) +
geom_point() +
scale_y_log10()
```

<img width="777" alt="image" src="https://github.com/GrigorijSchleifer/codeNewbie/assets/36699154/2d6fe441-b521-445c-928e-d4dfd3f815c5">

<img width="777" alt="image" src="https://github.com/GrigorijSchleifer/codeNewbie/assets/36699154/2d6fe441-b521-445c-928e-d4dfd3f815c5">

<a href="https://github.com/Grigorij`chleifer/codeNewbie/tree/main/R">R</a>

First encounter of the pipe operator behaving weirdly (something with left and right)

```R
Expand Down
84 changes: 0 additions & 84 deletions R/R.md

This file was deleted.

0 comments on commit 9fe0647

Please sign in to comment.