Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.8%) to scientific vocabulary
Last synced: 6 months ago
·
JSON representation
·
Repository
Fractal stuff
Basic Info
- Host: GitHub
- Owner: DominiqueMakowski
- Language: R
- Default Branch: main
- Size: 2.34 MB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 4 years ago
· Last pushed over 4 years ago
Metadata Files
Readme
Citation
README.Rmd
---
output:
github_document:
toc: false
fig_width: 10.08
fig_height: 6
editor_options:
chunk_output_type: console
---
```{r, echo = FALSE, warning=FALSE, message=FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
dpi = 450,
fig.width = 10,
fig.height = 10,
fig.path = "img/"
)
```
# Fractals
Fractal stuff.
## Using base R
**TO DO:**
- [ ] Optimize
**HELP NEEDED:**
- [ ] How to paralelize
- [ ] How to animate
### Basic
```{r, warning=FALSE, message=FALSE}
library(tidyverse)
library(mandelbrot)
# Download `mandelbrot()` function
source("https://raw.githubusercontent.com/DominiqueMakowski/fractals/main/mandelbrot.R")
iterations <- 50
data <- mandelbrot(resolution = 500, iterations = iterations)
# Colors
cols <- see::palette_material(palette = "rainbow")(iterations)
cols <- mandelbrot::mandelbrot_palette(cols,
fold = TRUE,
in_set = "black")
# Plot
ggplot(data, aes(x = x, y = y, fill = n)) +
geom_raster(interpolate = TRUE) +
theme_void() +
scale_fill_gradientn(colours = cols, guide = "none")
```
### Exploration
```{r, warning=FALSE, message=FALSE}
iter <- mandelbrot(resolution = 40, iterations = iterations) %>%
mutate(start = iter_1) %>%
bayestestR::reshape_iterations() %>%
filter(iter_value < 100) %>%
mutate(n = as.factor(n))
ggplot(iter, aes(x = iter_group, y = iter_value)) +
geom_line(aes(group = iter_index, color = n), size = 0.05, alpha = 2/3) +
coord_cartesian(ylim = c(0, 4)) +
theme_classic() +
scale_y_continuous(expand = c(0, 0)) +
scale_x_discrete(expand = c(0, 0)) +
scale_color_manual(values = cols, guide = "none") +
labs(y = "Distance", x = "Iteration", title = "Trajectories for each point")
```
Owner
- Name: Dominique Makowski
- Login: DominiqueMakowski
- Kind: user
- Location: UK
- Company: University of Sussex
- Website: https://dominiquemakowski.github.io/
- Twitter: Dom_Makowski
- Repositories: 57
- Profile: https://github.com/DominiqueMakowski
Neuropsychologist & pizza lover 🍕 Lecturer @ University of Sussex, UK, on the perception of reality 😼
Citation (CITATION.cff)
cff-version: 1.1.0
message: If you use this software, please cite it as below.
authors:
- family-names: Makowski
given-names: Dominique
title: fractals
version: 1.0.0
date-released: 2021-07-29
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0