Skip to content
Mapping with R has been completely revamped. Check it out →
R for the Rest of Us Logo

Interactive Dashboards with Shiny

Adding Tooltips to a Plotly Plot

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

Add more aesthetics to your ggplot aes() statement in the plotly/assignment_03/app.R file, such as movie_title="title".

Make sure that your app runs and that you can see the tooltip popup.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Kelly Stenhoff

Kelly Stenhoff • April 28, 2025

When I add the aesthetic 'lead = lead_actor_actress' I get the following error message: 'Error: input string 24 is invalid in this locale'. However, the other variables seem to work. What could be causing this error?

David Keyes

David Keyes Founder • May 2, 2025

What are the values for lead_actor_actress? From some quick Googling, this appears to be related to character encoding (e.g. using characters from, say, Chinese). Any chance that's what's going on here?

Ted Laderas

Ted Laderas • May 9, 2025

Yes - sorry I didn't get this notification. The chinese characters in lead_actor_actress are causing this. I will look into a fix