Displaying 18 results from an estimated 18 matches for "catmethod".
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
Dear David,
Thank you for your answer. Sorry for the embarrassing mistake. However,
even with when I generate 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...
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
...he list
Dear Jim,
Thank you for your reply. I must be doing something wrong, If this is my
command to plot a map of Europe:
eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="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...
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
...for your answer. Sorry for the embarrassing mistake. However, even with when I generate 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)))
>
> I do get an arrow using same version of R and OSX. See attac...
2016 Apr 10
2
Adding Two-Headed Arrow in map legend
...barrassing mistake.
> However, even with when I generate 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)))
> >>
> >>...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...Thank you for your answer. Sorry for the embarrassing mistake. However, even with when I generate 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)))
I do get an arrow using same version of R and OSX. See attached. (I think that png ima...
2016 Apr 10
2
Adding Two-Headed Arrow in map legend
...ake.
> However, even with when I generate 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)))
> &g...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...k you for your reply. I must be doing something wrong, If this is my
> command to plot a map of Europe:
>
> eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="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,-...
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
...for the embarrassing mistake. However, even with when I generate 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)))
> >>
> >> I do get...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...nswer. Sorry for the embarrassing mistake. However, even with when I generate 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)))
>>
>> I do get an arrow using same version...
2016 Apr 12
2
Adding Two-Headed Arrow in map legend
Dear Jim,
Thanks again! I do want the arrows at the bottom (beneath the map). This is
what I am doing:
# Draw the map
eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
Score - Europe",colourPalette=colourPalette,
catMethod="fixedWidth", missingCountryCol = "white", mapRegion="Europe",
addLegend=FALSE)
# ISO3 codes on the map
text(n, labels="ISO3", cex=0.30)
# Obtain coordinates for the arrow
par('usr')
# -19.75966 54.75966 33.60000 71.40000
# Arrows
par(xpd=TRUE)...
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
...ssing mistake. However, even with when I generate 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)))
> > >>...
2016 Apr 08
2
Adding Two-Headed Arrow in map legend
...oinColumn="iso3")
n <- n[-which(row.names(n)=='Antarctica'),]
# EPS
colourPalette <- 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!...
2016 Apr 11
2
Adding Two-Headed Arrow in map legend
...er, even with when I generate 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,-1...
2016 Apr 12
2
Adding Two-Headed Arrow in map legend
...t the arrows at the bottom (beneath the map). This
> is
> > what I am doing:
> >
> > # Draw the map
> > eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score",
> mapTitle="EPS
> > Score - Europe",colourPalette=colourPalette,
> > catMethod="fixedWidth", missingCountryCol = "white", mapRegion="Europe",
> > addLegend=FALSE)
> >
> > # ISO3 codes on the map
> > text(n, labels="ISO3", cex=0.30)
> >
> > # Obtain coordinates for the arrow
> > par('usr'...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...;- n[-which(row.names(n)=='Antarctica'),]
>
> # EPS
> colourPalette <- 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 fo...
2016 Apr 12
0
Adding Two-Headed Arrow in map legend
...ar Jim,
>
> Thanks again! I do want the arrows at the bottom (beneath the map). This is
> what I am doing:
>
> # Draw the map
> eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
> Score - Europe",colourPalette=colourPalette,
> catMethod="fixedWidth", missingCountryCol = "white", mapRegion="Europe",
> addLegend=FALSE)
>
> # ISO3 codes on the map
> text(n, labels="ISO3", cex=0.30)
>
> # Obtain coordinates for the arrow
> par('usr')
>
> # -19.75966 54.75966...
2016 Apr 11
0
Adding Two-Headed Arrow in map legend
Hi Milu,
I just realized that by "the bottom of the map" you may mean "beneath
the map", in which case you should use:
par(xpd=TRUE)
arrows(...)
par(xpd=FALSE)
Jim
On Mon, Apr 11, 2016 at 11:50 PM, Miluji Sb <milujisb at gmail.com> wrote:
> Dear David,
>
> Thank you very much for your replies! I didn't know about par('usr').
>
> I get
2016 Apr 13
0
Adding Two-Headed Arrow in map legend
...p). This
>> > is
>> > what I am doing:
>> >
>> > # Draw the map
>> > eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score",
>> > mapTitle="EPS
>> > Score - Europe",colourPalette=colourPalette,
>> > catMethod="fixedWidth", missingCountryCol = "white", mapRegion="Europe",
>> > addLegend=FALSE)
>> >
>> > # ISO3 codes on the map
>> > text(n, labels="ISO3", cex=0.30)
>> >
>> > # Obtain coordinates for the arrow
>...