<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Merging Legends for both geom Line and Point in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Merging-Legends-for-both-geom-Line-and-Point/m-p/456207#M14042</link>
    <description>&lt;P&gt;We recommend to send this issue to&amp;nbsp;&lt;STRONG&gt;pbircvsupport@microsoft.com&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;This email alias is supported by expirienced R-script developers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 07:07:48 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2018-07-06T07:07:48Z</dc:date>
    <item>
      <title>Merging Legends for both geom Line and Point</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Merging-Legends-for-both-geom-Line-and-Point/m-p/455784#M14027</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I was very new to R Script. If you are able to help my problem that would be really great... Here is my problem...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am able to create custom visual using R Script and make hover over work in that visual by using this below link&amp;nbsp;&lt;A href="http://radacad.com/interactive-map-using-r-and-power-bi-create-custom-visual-part-1" target="_blank" rel="nofollow noreferrer"&gt;Link&lt;/A&gt;&amp;nbsp;I think It is displaying legend for both line and point as well. This is how it is&amp;nbsp;showing me in the graph&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 428px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/105019i106E676FFA01144E/image-dimensions/428x216?v=v2" width="428" height="216" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I would like to show up something like this…. Which represents both the line and point in the same legend name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 450px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/105022i6CB065D836C39561/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please find the R Script below, Please go through that and can you tell me where I was going wrong….&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;source('./r_files/flatten_HTML.r')

Library Declarations:

       library(htmlwidgets);library(XML);library(ggplot2);library(plotly);

      Values$Storiesgrouping &amp;lt;- as.character(Values$Storiesgrouping)
      Cols &amp;lt;- as.character(Values$Color)
      names(Cols) &amp;lt;- as.character(Values$Builder_CommunityName)
      Sizs &amp;lt;- as.numeric(Values$Size)
      names(Sizs) &amp;lt;- as.character(Values$Builder_CommunityName)

Actual code:

g &amp;lt;- ggplot(Values, aes(x=BaseSquareFeet, y=BasePriceM, 
                        group=Builder_CommunityName, color=Builder_CommunityName))+
  geom_line()+
  geom_point(aes(shape=Storiesgrouping), show.legend=FALSE,size=3)+ 
  scale_colour_manual(values = Cols)+
  scale_size_manual(values = Sizs)+
  scale_shape_manual(values=c("1"=19, "2"=15, "3+"=17)) 
plot(g)&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2018 17:42:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Merging-Legends-for-both-geom-Line-and-Point/m-p/455784#M14027</guid>
      <dc:creator>VinayG</dc:creator>
      <dc:date>2018-07-05T17:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Legends for both geom Line and Point</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Merging-Legends-for-both-geom-Line-and-Point/m-p/456207#M14042</link>
      <description>&lt;P&gt;We recommend to send this issue to&amp;nbsp;&lt;STRONG&gt;pbircvsupport@microsoft.com&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;This email alias is supported by expirienced R-script developers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 07:07:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Merging-Legends-for-both-geom-Line-and-Point/m-p/456207#M14042</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-07-06T07:07:48Z</dc:date>
    </item>
  </channel>
</rss>

