Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph title not included in xml #101

Open
paultpearson opened this issue Aug 13, 2024 · 0 comments
Open

graph title not included in xml #101

paultpearson opened this issue Aug 13, 2024 · 0 comments

Comments

@paultpearson
Copy link

In the example below, when I view the source of the html output file, the speech and speech 2 annotations in xml for the title have an empty value such as "Title: " instead of "Title: Super Bowl National Anthem Length". The value of the plot title is getting lost somewhere. Could you please look into this? Thanks!

library(ggplot2)
library(BrailleR)
library(gridSVG)

superbowl <- data.frame(
year = seq(from = 1980, to = 2024, by = 1),
song_length <- c(78, 82, 98, 93, 94, 81, 82, 64, 94, 86, 85, 116, 126, 105, 153, 100, 95, 113, 87, 115, 120, 109, 116, 153, 129, 113, 129, 90, 114, 130, 107, 113, 94, 156, 123, 124, 142, 124, 112, 121, 109, 136, 115, 121, 95)
)

basicPlot <- ggplot(superbowl, aes(year, song_length)) +
geom_point() + geom_line() +
ggtitle("Super Bowl National Anthem Length") +
xlab("Year") + ylab("Song length (seconds)")

MakeAccessibleSVG.ggplot(basicPlot)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant