title: How do I remove superfluous legend (titles) in ggplot?
body: <p>I am trying to remove the &quot;series&quot; legend since I have added my own (mainly to change the legend title).
  Below my code (should be reproducible)</p>
  <p><a href="https://i.stack.imgur.com/0PoW5.png" rel="nofollow noreferrer">p1 image output</a></p>
  <pre><code>df&lt;-data.frame(
    &quot;time&quot;=c(100, 75, 50, 25, 0, -25),
    &quot;nativ&quot;=c(&quot;start&quot;, &quot;75&quot;, &quot;50&quot;, &quot;25&quot;,&quot;home&quot;,&quot;end&quot;),
    &quot;series&quot;=c(&quot;A&quot;, &quot;A&quot;,&quot;A&quot;, &quot;A&quot;, &quot;A&quot;,&quot;A&quot;),
    &quot;value&quot;=runif(n = 6,min = 0,max = 20)
  )
  
  serlabel=c(&quot;start&quot;, &quot;75&quot;, &quot;50&quot;, &quot;25&quot;,&quot;home&quot;,&quot;end&quot;)
  
  p2&lt;-ggplot2::ggplot(
    df, 
    ggplot2::aes(time,
                 value,
                 group=1
    )) + 
    ggplot2::geom_line(
      ggplot2::aes(colour = series, linetype=series))+
    #
    ggplot2::labs(x= &quot;Locations&quot;, 
                  y=&quot;APC&quot;, 
                  colour=paste(
                    &quot;New legend title&quot;)
    )+ #add variiable to function if fpkm or fc
    ggplot2::scale_x_reverse(breaks = c(100, 75, 55, 35, 10, -20),
                             labels = serlabel, #enter serieslabel variable
                             expand=c(0,0))+
    ggplot2::theme_bw()
  p2
  </code></pre>
  <p>I have tried to remove the series legend by adding</p>
  <pre><code>+ggplot2::theme(legend.title = ggplot2::element_blank())
  
  </code></pre>
  <p>but this removes both titles. There must be a cleaner way to do this. Does anyone know how?</p>