WFU-TLC / flc_discussion_board

A repository for discussing questions and issues in the Data Analysis with R (FLC)
https://wfu-tlc.github.io/
0 stars 0 forks source link

ggplot visualizations not showing up #5

Closed ejmasicampo closed 5 years ago

ejmasicampo commented 5 years ago

Hi all, I played around with rio and ggplot and documented my work. I published what I did to my website but the visualizations are showing up as broken images. The data seem to be importing fine, and everything else looks good. But the visualizations aren't there. The visualizations do show up locally when I view the html files on my computer. But when I view them on the website, the images don't show up. Can anyone tell me why? Thanks for the help! E.J.

medewitt commented 5 years ago

@ejmasicampo it looks like you didn't push all the .png files to your github. When I look at the html code it is looking for something called "pre_work_files/figure-html/unnamed-chunk-8-1.png" and there isn't anything in that directory in your github, hence the broken paths.

I would ensure that you push everything into your github directory and it should render correctly. In the terminal you could do:

git add --a
git commit -m "add everything"
git push

And that should commit everything to the online repo

ejmasicampo commented 5 years ago

Ah, yes. Solved. Thank you! I was only pushing the pre_work.html file and my data set thinking those were the only files that were changing or being added. I didn't realize that those images were also being created.