Error in if (added_height > 0) { : the condition has length > 1
I disabled everything in .Rprofile and .Renviron.
It does not error out if I remove the markdown bullets.
library(marquee)
library(tidyverse)
library(hrbrthemes)
ggplot() +
geom_marquee(
data = mtcars |> rownames_to_column("car"),
aes(
wt, mpg,
label = sprintf(r"({.maroon %s} ![](/Users/hrbrmstr/Data/ghostie.png))", car)
),
family = font_gs
) +
labs(
title = r"(## Relationship Between *Car Weight* *& Miles Per Gallon* in {.blue 1974 Motor Trend} Cars"
**Dataset**
The plot uses the `mtcars`
dataset, which includes data on 32 cars
from the {.blue 1974 Motor Trend} US magazine.
**Variables**
- *Weight (wt)*: The weight of the car in 1,000 lbs.
- *Miles Per Gallon (mpg)*: The fuel efficiency of the car measured in miles per gallon.
**Purpose**
This scatter plot visualizes the relationship between the weight of the car and its fuel efficiency.
**Insights**:
Generally, as the weight of the car increases, the miles per gallon decreases, indicating that heavier cars tend to be less fuel-efficient.
)") +
theme_ipsum_gs(grid="XY") +
theme(plot.title = element_marquee(size = 9, width = 1, lineheight = 1.3))
Imports
for{marquee}
The R code @ the end errors out with:
I disabled everything in
.Rprofile
and.Renviron
.It does not error out if I remove the markdown bullets.