Displaying 13 results from an estimated 13 matches for "addmaplegend".
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
...a map for the whole world using:
eps <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
Score",colourPalette=colourPalette,
catMethod="fixedWidth", missingCountryCol = "white",
addLegend=FALSE)
And then use:
do.call(addMapLegend, c(eps, legendLabels="none",
arrows(-100,-140,100,-140,code=3)))
Only a legend with the colours is generated, no arrows. My session info is
below. Thanks again!
R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.2 (El Capitan)
locale:
[1...
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
...tle="EPS
Score - Europe",colourPalette=colourPalette,
catMethod="fixedWidth", missingCountryCol =
"white", mapRegion="Europe", addLegend=FALSE)
The following command does not seem to add the arrow. What am I doing wrong?
do.call(addMapLegend, c(eps_europe, legendLabels="none",
arrows(-100,-140,100,-140,code=3)))
Thank you again. I really appreciate it.
Sincerely,
Milu
On Sat, Apr 9, 2016 at 12:20 PM, Jim Lemon <drjimlemon at gmail.com> wrote:
> Hi Miluji,
> Try this:
>
> arrows(-100,-140,100,-140,code=3...
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
...mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS Score",colourPalette=colourPalette,
>> catMethod="fixedWidth", missingCountryCol = "white", addLegend=FALSE)
>>
>> And then use:
>>
>> do.call(addMapLegend, c(eps, legendLabels="none", arrows(-100,-140,100,-140,code=3)))
>
> I do get an arrow using same version of R and OSX. See attached. (I think that png images will be accepted by the mailserver.)
Nope I was wrong, but the copy to Milugi did arrive.
Here's a pdf:
--
David
&...
2016 Apr 10
2
Adding Two-Headed Arrow in map legend
...", mapTitle="EPS
> Score",colourPalette=colourPalette,
> >>> catMethod="fixedWidth", missingCountryCol =
> "white", addLegend=FALSE)
> >>>
> >>> And then use:
> >>>
> >>> do.call(addMapLegend, c(eps, legendLabels="none",
> arrows(-100,-140,100,-140,code=3)))
> >>
> >> I do get an arrow using same version of R and OSX. See attached. (I
> think that png images will be accepted by the mailserver.)
> >
> > Nope I was wrong, but the copy to Milug...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...t;
> eps <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS Score",colourPalette=colourPalette,
> catMethod="fixedWidth", missingCountryCol = "white", addLegend=FALSE)
>
> And then use:
>
> do.call(addMapLegend, c(eps, legendLabels="none", arrows(-100,-140,100,-140,code=3)))
I do get an arrow using same version of R and OSX. See attached. (I think that png images will be accepted by the mailserver.)
--
David.
>
> Only a legend with the colours is generated, no arrows. My session info...
2016 Apr 10
2
Adding Two-Headed Arrow in map legend
...S
> Score",colourPalette=colourPalette,
> > >>> catMethod="fixedWidth", missingCountryCol =
> "white", addLegend=FALSE)
> > >>>
> > >>> And then use:
> > >>>
> > >>> do.call(addMapLegend, c(eps, legendLabels="none",
> arrows(-100,-140,100,-140,code=3)))
> > >>
> > >> I do get an arrow using same version of R and OSX. See attached. (I
> think that png images will be accepted by the mailserver.)
> > >
> > > Nope I was wrong, b...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...quot;,colourPalette=colourPalette,
> catMethod="fixedWidth", missingCountryCol =
> "white", mapRegion="Europe", addLegend=FALSE)
>
> The following command does not seem to add the arrow. What am I doing wrong?
>
> do.call(addMapLegend, c(eps_europe, legendLabels="none",
> arrows(-100,-140,100,-140,code=3)))
>
Your earlier question had a full world map. That was the context for Jim's reply, which did plot a two headed arrow above the legend in your earlier question. Now you have restricted the plot region to...
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
...;eps_score", mapTitle="EPS Score",colourPalette=colourPalette,
> >>> catMethod="fixedWidth", missingCountryCol = "white", addLegend=FALSE)
> >>>
> >>> And then use:
> >>>
> >>> do.call(addMapLegend, c(eps, legendLabels="none", arrows(-100,-140,100,-140,code=3)))
> >>
> >> I do get an arrow using same version of R and OSX. See attached. (I think that png images will be accepted by the mailserver.)
> >
> > Nope I was wrong, but the copy to Milugi did arri...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...nameColumnToPlot="eps_score", mapTitle="EPS Score",colourPalette=colourPalette,
>>> catMethod="fixedWidth", missingCountryCol = "white", addLegend=FALSE)
>>>
>>> And then use:
>>>
>>> do.call(addMapLegend, c(eps, legendLabels="none", arrows(-100,-140,100,-140,code=3)))
>>
>> I do get an arrow using same version of R and OSX. See attached. (I think that png images will be accepted by the mailserver.)
>
> Nope I was wrong, but the copy to Milugi did arrive.
>
> Her...
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
...e="EPS Score",colourPalette=colourPalette,
> > >>> catMethod="fixedWidth", missingCountryCol = "white", addLegend=FALSE)
> > >>>
> > >>> And then use:
> > >>>
> > >>> do.call(addMapLegend, c(eps, legendLabels="none", arrows(-100,-140,100,-140,code=3)))
> > >>
> > >> I do get an arrow using same version of R and OSX. See attached. (I think that png images will be accepted by the mailserver.)
> > >
> > > Nope I was wrong, but the cop...
2016 Apr 08
2
Adding Two-Headed Arrow in map legend
...lette <- rev(brewer.pal(7, "RdYlGn"))
eps <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
Score",colourPalette=colourPalette,
catMethod="fixedWidth", missingCountryCol = "white",
addLegend=FALSE)
do.call(addMapLegend, c(eps, legendLabels="all", legendWidth=0.5))
Instead of adding numeric based legend, I would like to add a two-headed
arrow with some text. I would be grateful for any help. Thank you!
Sincerely,
Milu
[[alternative HTML version deleted]]
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
..."RdYlGn"))
>
> eps <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
> Score",colourPalette=colourPalette,
> catMethod="fixedWidth", missingCountryCol = "white",
> addLegend=FALSE)
> do.call(addMapLegend, c(eps, legendLabels="all", legendWidth=0.5))
>
> Instead of adding numeric based legend, I would like to add a two-headed
> arrow with some text. I would be grateful for any help. Thank you!
>
> Sincerely,
>
> Milu
>
> [[alternative HTML version deleted...
2016 Apr 11
2
Adding Two-Headed Arrow in map legend
...Palette=colourPalette,
> > > >>> catMethod="fixedWidth", missingCountryCol =
> "white", addLegend=FALSE)
> > > >>>
> > > >>> And then use:
> > > >>>
> > > >>> do.call(addMapLegend, c(eps, legendLabels="none",
> arrows(-100,-140,100,-140,code=3)))
> > > >>
> > > >> I do get an arrow using same version of R and OSX. See attached. (I
> think that png images will be accepted by the mailserver.)
> > > >
> > > >...