title: ggplot geom_bar() customize by linetype and fill
body: <p>I am using ggplot2 and geom_bar() to plot some statistics. Is there a way to customize the fillings in the bar, and the line type for each of the bars? I would like to highlight two key features: There are five bars overall and the numbers they represent are produced from two different types of input, and use three different functions I  use for the plot. The bars should show the function, input variation. I thought of using full dark fill for one set of inputs, and white fill for the other set of inputs. For the functions, I could use different line types to show the contrast. </p>
  
  <p>In summary the values from the bar represent outputs from combination of inputs X and Y on functions f1, f2, and f3: bar A: input X function f1; bar B input Y function f1; bar C input X function f2; bar D input Y function f2; bar E input Y function f3.</p>
  
  <p>Any suggestions on how this could be possible? Here is an example I was able to try, but as you see it is not complete to what I want to achieve where I fill subcompact and midsize with a color, but how could I change the line type? and how could I use geom_text() for the text:</p>
  
  <pre><code>      library(ggplot2)
        data(mpg)
        unique(mpg$class)
        library(ggplot2)
  
       ggplot(mpg, aes(x = class, fill = class %in% c("subcompact", "midsize"))) +
  geom_bar(linetype="dashed", colour="darkgreen") + scale_fill_grey() + guides(fill=FALSE) + theme_classic()
  </code></pre>