Skip to content

Instantly share code, notes, and snippets.

@schluppeck
Created February 13, 2018 14:54
Show Gist options
  • Save schluppeck/7c79df72d7fdb8b10b4312fbe024d735 to your computer and use it in GitHub Desktop.
Save schluppeck/7c79df72d7fdb8b10b4312fbe024d735 to your computer and use it in GitHub Desktop.
ggplot + crosshatching
license: mit

Built with blockbuilder.org and R

In response to this StackOverflow question geom_bar: color gradient and cross hatches (using gridSVG), transparency issue, I did this. I wanted to see if combining svglite, htmltools, d3.js, and textures.js might achieve the desired result.

    library("ggplot2")
    library("gridSVG")
    library("gridExtra")
    library("dplyr")
    library("RColorBrewer")
    
    dfso <- structure(list(Sample = c("S1", "S2", "S1", "S2", "S1", "S2"), 
                           qvalue = c(14.704287341, 8.1682824035, 13.5471896224, 6.71158432425, 
                                      12.3900919038, 5.254886245), type = structure(c(1L, 1L, 2L, 
                                                                                      2L, 3L, 3L), .Label = c("A", "overlap", "B"), class = "factor"), 
                           value = c(897L, 1082L, 503L, 219L, 388L, 165L)), class = c("tbl_df", 
                                                                                      "tbl", "data.frame"), row.names = c(NA, -6L), .Names = c("Sample", 
                                                                                                                                               "qvalue", "type", "value"))
    
    cols <- brewer.pal(7,"YlOrRd")
    pso <- ggplot(dfso)+
      geom_bar(aes(x = Sample, y = value, fill = qvalue), width = .8, colour = "black", stat = "identity", position = "stack", alpha = 1)+
      ylim(c(0,2000)) + 
      theme_classic(18)+
      theme( panel.grid.major = element_line(colour = "grey80"),
             panel.grid.major.x = element_blank(),
             panel.grid.minor = element_blank(),
             legend.key = element_blank(),
             axis.text.x = element_text(angle = 90, vjust = 0.5))+
      ylab("Count")+
      scale_fill_gradientn("-log10(qvalue)", colours = cols, limits = c(0, 20))
    
    # use svglite and htmltools
    library(svglite)
    library(htmltools)
    
    # get the svg as tag
    pso_svg <- htmlSVG(print(pso),height=10,width = 14)
    
    browsable(
      attachDependencies(
        tagList(
          pso_svg,
          tags$script(
            sprintf(
    "
      var data = %s
    
      var svg = d3.select('svg');
    
      svg.select('style').remove();
    
      var bars = svg.selectAll('rect:not(:last-of-type):not(:first-of-type)')
         .data(d3.merge(d3.values(d3.nest().key(function(d){return d.Sample}).map(data))))
      
      bars.style('fill',function(d){
        var t = textures
                  .lines()
                  .background(d3.rgb(d3.select(this).style('fill')).toString());
    
        if(d.type === 'A') t.orientation('2/8');
        if(d.type === 'overlap') t.orientation('2/8','6/8');
        if(d.type === 'B') t.orientation('6/8');
    
        svg.call(t);
        return t.url();
      });
    "    
              ,
              jsonlite::toJSON(dfso)
            )
          )
        ),
        list(
          htmlDependency(
            name = "d3",
            version = "3.5",
            src = c(href = "http://d3js.org"),
            script = "d3.v3.min.js"
          ),
          htmlDependency(
            name = "textures",
            version = "1.0.3",
            src = c(href = "https://rawgit.com/riccardoscalco/textures/master/"),
            script = "textures.min.js"
          )
        )
      )
    )

forked from timelyportfolio's block: ggplot and textures.js

forked from anonymous's block: ggplot + crosshatching

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script src="data:application/javascript; charset=utf-8;base64,IWZ1bmN0aW9uKCl7ZnVuY3Rpb24gbihuKXtyZXR1cm4gbiYmKG4ub3duZXJEb2N1bWVudHx8bi5kb2N1bWVudHx8bikuZG9jdW1lbnRFbGVtZW50fWZ1bmN0aW9uIHQobil7cmV0dXJuIG4mJihuLm93bmVyRG9jdW1lbnQmJm4ub3duZXJEb2N1bWVudC5kZWZhdWx0Vmlld3x8bi5kb2N1bWVudCYmbnx8bi5kZWZhdWx0Vmlldyl9ZnVuY3Rpb24gZShuLHQpe3JldHVybiB0Pm4/LTE6bj50PzE6bj49dD8wOk5hTn1mdW5jdGlvbiByKG4pe3JldHVybiBudWxsPT09bj9OYU46K259ZnVuY3Rpb24gdShuKXtyZXR1cm4haXNOYU4obil9ZnVuY3Rpb24gaShuKXtyZXR1cm57bGVmdDpmdW5jdGlvbih0LGUscix1KXtmb3IoYXJndW1lbnRzLmxlbmd0aDwzJiYocj0wKSxhcmd1bWVudHMubGVuZ3RoPDQmJih1PXQub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NpemUvKDIqXyk6c2l6ZS8yfXJldHVybiBwYXRoc307cGF0aHMuZD1mdW5jdGlvbihfKXtkPV87cmV0dXJuIHBhdGhzfTtwYXRocy5zaXplPWZ1bmN0aW9uKF8pe3NpemU9XztyZXR1cm4gcGF0aHN9O3BhdGhzLnN0cm9rZT1mdW5jdGlvbihfKXtzdHJva2U9XztyZXR1cm4gcGF0aHN9O3BhdGhzLnN0cm9rZVdpZHRoPWZ1bmN0aW9uKF8pe3N0cm9rZVdpZHRoPV87cmV0dXJuIHBhdGhzfTtwYXRocy5pZD1mdW5jdGlvbihfKXtpZighYXJndW1lbnRzLmxlbmd0aCl7cmV0dXJuIGlkfWVsc2V7aWQ9XztyZXR1cm4gcGF0aHN9fTtwYXRocy51cmw9ZnVuY3Rpb24oKXtyZXR1cm4idXJsKCMiK2lkKyIpIn07cmV0dXJuIHBhdGhzfX19KX0pLmNhbGwodGhpcyk7"></script>
</head>
<body style="background-color:white;">
<?xml version="1.0" encoding="UTF-8" ?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1008.00 720.00">
<defs>
<style type="text/css">
line, polyline, path, rect, circle {
fill: none;
stroke: #000000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-miterlimit: 10.00;
}
</style>
</defs>
<rect width="100%" height="100%" style="stroke: none; fill: #FFFFFF;"></rect>
<polyline points="0.00,720.00 0.00,0.00 1008.00,0.00 1008.00,720.00 " style="stroke-width: 1.07; stroke: #FFFFFF; fill: #FFFFFF;"></polyline>
<polyline points="72.71,661.71 72.71,8.97 858.46,8.97 858.46,661.71 " style="stroke-width: 1.07; stroke: none; fill: #FFFFFF;"></polyline>
<polyline points="72.71,632.04 858.46,632.04 " style="stroke-width: 1.07; stroke: #CCCCCC; stroke-linecap: butt;"></polyline>
<polyline points="72.71,483.69 858.46,483.69 " style="stroke-width: 1.07; stroke: #CCCCCC; stroke-linecap: butt;"></polyline>
<polyline points="72.71,335.34 858.46,335.34 " style="stroke-width: 1.07; stroke: #CCCCCC; stroke-linecap: butt;"></polyline>
<polyline points="72.71,186.99 858.46,186.99 " style="stroke-width: 1.07; stroke: #CCCCCC; stroke-linecap: butt;"></polyline>
<polyline points="72.71,38.64 858.46,38.64 " style="stroke-width: 1.07; stroke: #CCCCCC; stroke-linecap: butt;"></polyline>
<rect x="144.15" y="365.90" width="285.72" height="266.14" style="stroke-width: 1.07; stroke-linecap: butt; fill: #F23C24;"></rect>
<rect x="144.15" y="216.66" width="285.72" height="149.24" style="stroke-width: 1.07; stroke-linecap: butt; fill: #FA4B29;"></rect>
<rect x="144.15" y="101.54" width="285.72" height="115.12" style="stroke-width: 1.07; stroke-linecap: butt; fill: #FD622F;"></rect>
<rect x="501.30" y="311.01" width="285.72" height="321.03" style="stroke-width: 1.07; stroke-linecap: butt; fill: #FEA245;"></rect>
<rect x="501.30" y="246.03" width="285.72" height="64.98" style="stroke-width: 1.07; stroke-linecap: butt; fill: #FEB24C;"></rect>
<rect x="501.30" y="197.07" width="285.72" height="48.96" style="stroke-width: 1.07; stroke-linecap: butt; fill: #FFC35E;"></rect>
<polyline points="72.71,661.71 72.71,8.97 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<text x="56.64" y="637.19" style="font-size: 14.40pt; font-family: Arial;">0</text>
<text x="40.62" y="488.84" style="font-size: 14.40pt; font-family: Arial;">500</text>
<text x="32.61" y="340.49" style="font-size: 14.40pt; font-family: Arial;">1000</text>
<text x="32.61" y="192.14" style="font-size: 14.40pt; font-family: Arial;">1500</text>
<text x="32.61" y="43.79" style="font-size: 14.40pt; font-family: Arial;">2000</text>
<polyline points="68.23,632.04 72.71,632.04 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<polyline points="68.23,483.69 72.71,483.69 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<polyline points="68.23,335.34 72.71,335.34 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<polyline points="68.23,186.99 72.71,186.99 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<polyline points="68.23,38.64 72.71,38.64 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<polyline points="72.71,661.71 858.46,661.71 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<polyline points="287.01,666.19 287.01,661.71 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<polyline points="644.16,666.19 644.16,661.71 " style="stroke-width: 1.07; stroke-linecap: butt;"></polyline>
<text transform="translate(292.16,687.39) rotate(-90)" style="font-size: 14.40pt; font-family: Arial;">S1</text>
<text transform="translate(649.32,687.39) rotate(-90)" style="font-size: 14.40pt; font-family: Arial;">S2</text>
<text x="435.07" y="707.45" style="font-size: 18.00pt; font-family: Arial;">Sample</text>
<text transform="translate(25.44,359.35) rotate(-90)" style="font-size: 18.00pt; font-family: Arial;">Count</text>
<rect x="866.96" y="279.28" width="123.57" height="112.11" style="stroke-width: 1.07; stroke: none; fill: #FFFFFF;"></rect>
<image width="17.28" height="86.40" x="871.21" y="300.74" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAABWCAIAAACmUup5AAAABmJLR0QA/wD/AP+gvaeTAAAAo0lEQVRYhd2YyQ3DQAwDddCtpH9XmNTAeRBC/B8MLWm9gvutT5nPuEBVqetrM/JN2sl4BDwb8rBs/+UhPR35zKojnlnAoGyHmc14+rTHHmw1yRZi6iGMXwPiaZKN1AD0FNUtlS01B/6FqgJnDjFDvgeH3+dw3WIelM2+uCFDZieV7TDjL1bHs9nLZbA/JBtg/AUbZntspkOeyzXIzUEkG/kf8gOlqg0CmojySgAAAABJRU5ErkJggg=="></image>
<text x="892.81" y="390.13" style="font-size: 14.40pt; font-family: Arial;">0</text>
<text x="892.81" y="369.61" style="font-size: 14.40pt; font-family: Arial;">5</text>
<text x="892.81" y="349.09" style="font-size: 14.40pt; font-family: Arial;">10</text>
<text x="892.81" y="328.57" style="font-size: 14.40pt; font-family: Arial;">15</text>
<text x="892.81" y="308.05" style="font-size: 14.40pt; font-family: Arial;">20</text>
<text x="871.21" y="296.42" style="font-size: 18.00pt; font-family: Arial;">-log10(qvalue)</text>
<line x1="871.21" y1="384.98" x2="874.67" y2="384.98" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="871.21" y1="364.46" x2="874.67" y2="364.46" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="871.21" y1="343.94" x2="874.67" y2="343.94" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="871.21" y1="323.42" x2="874.67" y2="323.42" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="871.21" y1="302.90" x2="874.67" y2="302.90" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="885.04" y1="384.98" x2="888.49" y2="384.98" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="885.04" y1="364.46" x2="888.49" y2="364.46" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="885.04" y1="343.94" x2="888.49" y2="343.94" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="885.04" y1="323.42" x2="888.49" y2="323.42" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
<line x1="885.04" y1="302.90" x2="888.49" y2="302.90" style="stroke-width: 0.38; stroke: #FFFFFF; stroke-linecap: butt;"></line>
</svg>
<script>
var data = [{"Sample":"S1","qvalue":14.7043,"type":"A","value":897},{"Sample":"S2","qvalue":8.1683,"type":"A","value":1082},{"Sample":"S1","qvalue":13.5472,"type":"overlap","value":503},{"Sample":"S2","qvalue":6.7116,"type":"overlap","value":219},{"Sample":"S1","qvalue":12.3901,"type":"B","value":388},{"Sample":"S2","qvalue":5.2549,"type":"B","value":165}]
var svg = d3.select('svg');
svg.select('style').remove();
var bars = svg.selectAll('rect:not(:last-of-type):not(:first-of-type)')
.data(d3.merge(d3.values(d3.nest().key(function(d){return d.Sample}).map(data))))
bars.style('fill',function(d){
var t = textures
.lines()
.background(d3.rgb(d3.select(this).style('fill')).toString());
if(d.type === 'A') t.orientation('2/8');
if(d.type === 'overlap') t.orientation('2/8','6/8');
if(d.type === 'B') t.orientation('6/8');
svg.call(t);
return t.url();
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment