-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLearning-R.Qmd
More file actions
146 lines (104 loc) · 2.49 KB
/
Learning-R.Qmd
File metadata and controls
146 lines (104 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
# YAML Header for Quarto
# Note: nothing should go above the YAML header
lang: "en-US"
title: "Learning R 2.0"
subtitle: "Kraken-R Project"
abstract: "Kraken-R is a monolithic R script for learning R."
abstract-title: "Kraken-R Project-Learning-R"
author: "David Geeraerts"
email: "geeraerd@evergreen.edu"
date-format: iso
date: "2025-03-12"
date-modified: "2025-03-11"
params:
edition: 2.0
format:
html:
toc: TRUE
toc-title: Content
toc-location: left
toc-depth: 6
toc-expand: 6
code-fold: false
html-math-method:
method: mathjax
citations-hover: false
footnotes-hover: false
crossrefs-hover: false
theme: solar
execute:
freeze: false
---
::: {layout="[50,50,50,50]"}



:::
- Project available on [GitHub](https://github.com/Octopoida/Kraken-R)
##### YAML Header Notes:
- [format html reference](https://quarto.org/docs/reference/formats/html.html)
- [HTML Themes](https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/formats/html/bootstrap/themes)
- Quarto Project
# Introduction
# R Basics
### Code
Documenation for [code chunks](https://yihui.org/knitr/options/)
```{r}
print("R code")
print("All the engines!")
names(knitr::knit_engines$get())
```
- Code advanced setup, with Code chunk options
```{R}
#| outputcap-location: column
#| label: someLabel
#| fig-cap: caption for figure
#| warning: false
library(ggplot2)
# Create a sample data frame
data <- data.frame(
x = rnorm(100),
y = rnorm(100)
)
# Create a scatter plot
ggplot(data, aes(x = x, y = y)) +
geom_point() +
labs(title = "Scatter Plot Example", x = "X-Axis", y = "Y-Axis")
```
#### DIV and Spans
.big-text {
font-size: 120px;
}
::: {.big-text}
Controlled tex with fenced Div block
:::
#### Special Formatting
This is [special]{style="color:red;"} formatting.
#### Nested fenced Div
#### Callout Blocks
:::{.callout-note}
Note that there are five types of callouts, including:
`note`, `tip`, `warning`, `caution`, and `important`
:::
#### Tabsets
::: {.panel-tabset}
## Output
```{R}
#| echo: false
#| eval: true
head(mtcars)
```
## Code
```{R}
#| echo: fenced
#| eval: false
head(mtcars)
```
:::
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
Copyright License, Creative Commons: [Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)](http://creativecommons.org/licenses/by-nc-sa/3.0/)