Adding logos in geom_point

I have installed the ggimage library to puta logo for the points that appear by default in ggplot when you use the geom_point function. I also created an "image" column in my dataframe with the logo link corresponding to each team. I would be interested to know how to replace the images that come out by default of the R logo and put the equipment shields. My code used:

ggplot(Francia, aes(Gls., Ass)) + geom_point() + geom_image(aes(Gls., Ass), size=.05)

My 'image' column like:

Francia$imagen <- c("https://es.logodownload.org/wp-content/uploads/2019/09/angers-sco-logo-41-220x300.png", "https://es.logodownload.org/wp-content/uploads/2019/09/fc-bordeaux-logo-41-245x300.png", "https://es.logodownload.org/wp-content/uploads/2019/09/stade-brestois-29-logo-41-247x300.png", "https://logodownload.org/wp-content/uploads/2019/09/dijon-fco-logo-0.png","https://tmssl.akamaized.net/images/wappen/big/826.png?lm=1595457059","https://es.logodownload.org/wp-content/uploads/2019/09/lille-logo-41-300x285.png","https://upload.wikimedia.org/wikipedia/en/thumb/4/4c/FC_Lorient_logo.svg/1200px-FC_Lorient_logo.svg.png","https://es.logodownload.org/wp-content/uploads/2019/09/lyon-logo-41-259x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/olympique-de-marseille-91-232x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/fc-metz-logo-41-251x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/monaco-fc-logo-41-176x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/montpellier-logo-41-300x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/nantes-fc-logo-41-228x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/ogc-nice-logo-41-243x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/nimes-olympique-logo-41-258x300.png","https://es.logodownload.org/wp-content/uploads/2019/07/psg-logo-escudo-paris-saint-germain-51-300x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/stade-de-reims-logo-41-300x300.png","https://es.logodownload.org/wp-content/uploads/2019/09/rennes-fc-logo-41-246x300.png","https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Logo_AS_Saint-%C3%89tienne.svg/1200px-Logo_AS_Saint-%C3%89tienne.svg.png","https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Racing_Club_de_Strasbourg_logo.svg/1200px-Racing_Club_de_Strasbourg_logo.svg.png")

And the result is:

How I need to do to put the team logos for the R logo?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.