Compare commits
10 Commits
dd220cef7e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b8ae27e102 | |||
| 7e917f3bf0 | |||
| f27d6850ae | |||
| 8e7be078a0 | |||
| ae8fa7a47e | |||
| 7d2164137b | |||
| cee7348ab0 | |||
| 2b257f2507 | |||
| a3891cab67 | |||
| dc9075eb0c |
@@ -6,12 +6,69 @@ description: >
|
|||||||
and maybe it is helpful for you, too, internet wanderer.
|
and maybe it is helpful for you, too, internet wanderer.
|
||||||
date: 2024-11-05T08:00:00+0100
|
date: 2024-11-05T08:00:00+0100
|
||||||
draft: false
|
draft: false
|
||||||
|
toc: true
|
||||||
---
|
---
|
||||||
{{< git-info >}}
|
{{< git-info >}}
|
||||||
{{< param "description" >}}
|
{{< param "description" >}}
|
||||||
|
|
||||||
## R
|
## R
|
||||||
|
|
||||||
|
## ggplot2 elements
|
||||||
|
|
||||||
|
I can never remember which part of a [ggplot2][] graph/figure is the "plot"
|
||||||
|
and which is the "panel", so I made this little figure:
|
||||||
|
|
||||||
|
{{< figure src="/img/ggplot2-elements.png" >}}
|
||||||
|
|
||||||
|
The figure was generated with this code:
|
||||||
|
|
||||||
|
```r
|
||||||
|
library(tidyverse)
|
||||||
|
tibble(x = 1:3, y = 1:3) |>
|
||||||
|
ggplot(aes(x = x, y = y)) +
|
||||||
|
geom_col(fill = "white") +
|
||||||
|
geom_text(
|
||||||
|
label = "The green area is the PANEL BACKGROUND",
|
||||||
|
x = 0.5,
|
||||||
|
y = 3.5,
|
||||||
|
hjust = 0,
|
||||||
|
color = "dark green",
|
||||||
|
fontface = "bold"
|
||||||
|
) +
|
||||||
|
geom_text(
|
||||||
|
label = "The blue border at the top and the right is the PLOT BORDER",
|
||||||
|
x = 0.5,
|
||||||
|
y = 3.2,
|
||||||
|
hjust = 0,
|
||||||
|
color = "navy",
|
||||||
|
fontface = "bold"
|
||||||
|
) +
|
||||||
|
geom_text(
|
||||||
|
label = "The gray area is the PLOT BACKGROUND",
|
||||||
|
x = 0.5,
|
||||||
|
y = -0.5,
|
||||||
|
hjust = 0,
|
||||||
|
color = "black",
|
||||||
|
fontface = "bold"
|
||||||
|
) +
|
||||||
|
coord_cartesian(clip = "off") +
|
||||||
|
scale_x_continuous(expand = expansion(), limits = c(0, 4)) +
|
||||||
|
scale_y_continuous(expand = expansion(), limits = c(0, 4)) +
|
||||||
|
theme(
|
||||||
|
panel.border = element_rect(fill = "light blue", color = "blue"),
|
||||||
|
panel.background = element_rect(fill = "light green", color = "green"),
|
||||||
|
plot.background = element_rect(fill = "gray", color = "black"),
|
||||||
|
plot.margin = unit(rep(0.1, 4), units = "npc")
|
||||||
|
)
|
||||||
|
ggsave(
|
||||||
|
"ggplot2-elements.png",
|
||||||
|
width = 9,
|
||||||
|
height = 6,
|
||||||
|
units = "in",
|
||||||
|
dpi = 96
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
### Print R objects so that they can be re-generated from code
|
### Print R objects so that they can be re-generated from code
|
||||||
|
|
||||||
```r
|
```r
|
||||||
@@ -95,3 +152,11 @@ starwars |>
|
|||||||
```
|
```
|
||||||
|
|
||||||
<sup>Created on 2024-11-05 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup>
|
<sup>Created on 2024-11-05 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup>
|
||||||
|
|
||||||
|
## Wrangling computers
|
||||||
|
|
||||||
|
### Human interaction with IMAP servers
|
||||||
|
|
||||||
|
<https://geekmungus.co.uk/?p=4358>
|
||||||
|
|
||||||
|
[ggplot2]: https://ggplot2.tidyverse.org
|
||||||
@@ -9,8 +9,9 @@ Mail: <bovender@bovender.de>
|
|||||||
|
|
||||||
{{< orcid >}}
|
{{< orcid >}}
|
||||||
|
|
||||||
Ladungsfähige Anschrift bei meinem Arbeitgeber: Unimedizin Mainz, Langenbeckstr.
|
Ladungsfähige Anschrift bei meinem Arbeitgeber: Universitätsklinikum
|
||||||
1, 55131 Mainz. Dies ist eine rein private Homepage und in keiner Weise von
|
Heidelberg, Im Neuenheimer Feld 162, 69120 Heidelberg.
|
||||||
|
Dies ist eine rein private Homepage und in keiner Weise von
|
||||||
meinem Arbeitgeber beworben oder unterstützt. Meine Privatanschrift ist zu
|
meinem Arbeitgeber beworben oder unterstützt. Meine Privatanschrift ist zu
|
||||||
meinem persönlichen Schutz und dem Schutz meiner Familie hier nicht
|
meinem persönlichen Schutz und dem Schutz meiner Familie hier nicht
|
||||||
veröffentlicht. **Ich bitte, von Anrufen abzusehen.** Über Mail oder die
|
veröffentlicht. **Ich bitte, von Anrufen abzusehen.** Über Mail oder die
|
||||||
|
|||||||
@@ -123,5 +123,26 @@ Yesterday I upgraded from Fedora 41 to Fedora 42 (KDE), and of course the NVIDIA
|
|||||||
drivers were removed. Using the instructions above effortlessly installed the
|
drivers were removed. Using the instructions above effortlessly installed the
|
||||||
driver (currently version 570). :-)
|
driver (currently version 570). :-)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Addendum 2026-01-18
|
||||||
|
|
||||||
|
This is turning into a pattern. Today I noticed while working with Darktable
|
||||||
|
that OpenCL was no longer in use. Sure enough `inxi -G` told me that no
|
||||||
|
NVIDIA driver was loaded.
|
||||||
|
|
||||||
|
When I issued
|
||||||
|
|
||||||
|
```fish
|
||||||
|
sudo dnf install nvidia-settings xorg-x11-drv-nvidia-cuda
|
||||||
|
```
|
||||||
|
|
||||||
|
dnf said that these packages were already installed, but with `sudo dnf update`
|
||||||
|
I got a whole bunch of updates for the NVIDIA-related packages.
|
||||||
|
|
||||||
|
After rebooting, my laptop would crash twice, but holding my breath I disconnected
|
||||||
|
the external screen, rebooted again, and after logging into Fedora 43 reconnected
|
||||||
|
the external screen, which finally went smoothly (and I could breathe again).
|
||||||
|
|
||||||
[Darktable]: https://www.darktable.org
|
[Darktable]: https://www.darktable.org
|
||||||
[RPM fusion]: https://rpmfusion.org
|
[RPM fusion]: https://rpmfusion.org
|
||||||
@@ -6,7 +6,7 @@ description: >
|
|||||||
server's SSL certificate had been issued by a different Certificate
|
server's SSL certificate had been issued by a different Certificate
|
||||||
Authority than before, and this CA's root certificate was not known to
|
Authority than before, and this CA's root certificate was not known to
|
||||||
the phone.
|
the phone.
|
||||||
date: 2026-01-01T18:00:00+0200
|
date: 2026-01-01T18:00:00+0100
|
||||||
draft: false
|
draft: false
|
||||||
# ShowLastmod: true
|
# ShowLastmod: true
|
||||||
toc: false
|
toc: false
|
||||||
|
|||||||
9
pull-and-update.sh
Executable file
9
pull-and-update.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# https://stackoverflow.com/a/1482133/270712
|
||||||
|
MYDIR=`dirname -- "$( readlink -f -- "$0"; )";`
|
||||||
|
pushd "$MYDIR"
|
||||||
|
git pull
|
||||||
|
docker compose -f docker-compose.yml up build
|
||||||
|
popd
|
||||||
BIN
static/img/ggplot2-elements.png
Normal file
BIN
static/img/ggplot2-elements.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Submodule themes/hermit-v2 updated: 967da76ef8...5920c3da93
Reference in New Issue
Block a user