R code ggplot/googlemaps - r

I am trying to get this to work (the links below are all the same thing really) code included at bottom of first link.
Looks like the google maps part doesn't work, does anyone know why?
Also looks like the text overlay doesn't work, also why?
http://workfeed.baileyplex.com/2013/02/maps-in-r-choropleth-maps.html
http://www.r-bloggers.com/maps-in-r-choropleth-maps/
http://www.milanor.net/blog/?p=634
Originally, I couldn't get anything to work but found a post on here about reinstalling several packages and that got me to this point.

Related

How to add buttons on top of an image, like waypoints on a map [WORDPRESS]

I’m new to wordpress therefore I’m not aware of all the capabilities of this tool, but I wanted to know how do I add buttons on top of an image, much like the waypoints you normally see in maps in museums or even video-games. It is something that I am having trouble recreating and I would need some help with that.
Here is an example but of course, with less buttons than what it is actually shown here.
Also, before I forget to mention, thank you to all those who try to help me.
(This is a repost from my original topic in the wordpress forums, you can find it here.)

Barlow rendering difference between Google Fonts example page and usage in a separate page

We're using Barlow, available for free from Google fonts, in a web app. Here's the way a sample phrase looks when rendered on Google's example page. (If you want to reproduce it, you will need to enter the custom text yourself and adjust the slider to 14px.)
Note, in particular, the distinct space between the bottom of the i and its dot above, as well as the clarity of the top part of the f.
This is how the same phrase looks when rendered in our app, as reproduced in this Code Pen.
Note the muddy space between the i and its dot, as well as the muddy top curve to the f.
I've tried looking through all the styles on the elements in question, and I can't find any style that should affect these differently. The network tab clearly shows that the bold version of the font is being loaded; it doesn't look as if this could be faux bold.
This may seem trivial, but we've actually had quite a few complaints about how the font looks in our app, specifically that the bold, lowercase i looks like an l.
Anyone have an idea what might be happening here?
Update: Using Chrome on a Mac; I can confirm the same issue in Firefox. This is on an external display... on a retina there's no problem, as there is way more detail.
The problem turned out to be a problem with the source repo: "hinting got missed in the most recent commit" and the Google specimen (which looked correct) was "actually running an earlier version."
Happily, the maintainer was able to get the problem fixed with a subsequent version.

R Blogdown: insert images side by side using knitr

I am working on a personal website using blogdown. I know about the handy addin for inserting an image - it works well, but for only one image. Is there a way, using knitr::include_graphics, to insert multiple images side-by-side?
I'm aware of using something like this:
![image text](path/to/image.png) ![other image text](path/to/image2.png)
But this cannot adjust the size of each image, which is an important formatting option for me.
Note:
While poking around for a solution before I post this question, I found this github issue which seems to be similar to what I'm talking about.
Edit:
Using something like this:
<img src="path/to/image.png" width="50%"/><img src="path/to/image2.png" width="50%"/>
Was suggested, but it only displays the images on top of each other in the document.
I'll post the solution mentioned in the above comments since it worked the best for me, and I'll certainly come back to this post to use this in the future. The answer here seems to be the only thing that works for me. If getting the path name correct is difficult, run the command getwd() in the line above to make sure readPNG is looking in the right place.

Google maps disapears after replacing wp_head() with same code output from source code

So im optimizing a website to make page load faster, and editing some of the script includes in the header. What im trying to do, and its working weird for some reason, is looking up in the browser source code what the wp_head() function outputs, and copying and pasting it identical to the html file editor, so i can add async to the script tags, and do a couple of other things
Its working fine, except for some reason, google maps isnt showing up. Which doenst make sense because the final code is supposably identical. The only difference is that when it works, im using wp_head(), and when it doesnt, im hardcoding the exact output from wp_head, and removing that function
Any idea why that is?
Heres the site
http://tinyurl.com/mcquxmu
the blank area is the google maps, and im not seeing any errors in the console... nothing else on the page has been edited. Only the content from wp_head which i place in between comments.

Messed up my site's CSS

Well, I did something pretty stupid. I'm using ruby on rails, and I was adding glyphicons to my site , but for some reason they weren't loading properly. A plus sign in my header looked small, and the edit and delete signs on another page came up as rectangles (The browser I was using was Chrome, and all of this was looked at via LocalHost:3000).
I decided to copy and paste the bootstrap_and_customization.css.scss file from a git-hub page into my own respective file, just to experiment.
I didn't see much of a difference, aside from spacing. After saving, I found that my website looked completely different. All the CSS and Bootstrap elements seem to be gone. I clicked undo, saved again, and found that my website still looks bizarre.
I'm using gems, which has been pretty easy so far, but right now I'm stumped. I even did git reset --hard, so I know all of my code is as it was before I screwed things up.
Could you please help me?
Do you have something that is compiling the *.SCSS files into *.CSS? If not then they won't do anything.

Resources