rempsyc / busara_dashboard

The Missing Majority in Behavioural Science Dashboard
https://remi-theriault.com/dashboards/missing_majority
1 stars 0 forks source link

Add citation information for each figure #43

Closed rempsyc closed 4 months ago

rempsyc commented 4 months ago

Continuation of #41

I would include citation information in small text in the corner of every image you have on the page. That makes it really easy for people to cite, and if they take a screenshot, it makes it really easy for them to keep the credit inside the screenshot (so they have no excuse not to cite the work).

Not sure how to do this yet, will have to think of something

rempsyc commented 4 months ago

Surprisingly, adding citation information to the figures is not a trivial matter. At first, I added the citation information as a footnote of each page, but this is not really a footnote of the figure and is not optimized for screenshots.

Then, I found ways to include the citation directly as part of the figure, using ggplot2, but it was challenging to get all the settings right (size, italics, new line, etc.). For plotly plots, things are even more complicated since the ggplot2 solution doesn't work and it required again lots of manual work to implement a scalable solution... It is still not perfect but I think it will do for now so closing this issue...