search for: addlegend

Displaying 18 results from an estimated 18 matches for "addlegend".

2016 Apr 09
2
Adding Two-Headed Arrow in map legend
...stake. 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 3.2.4 (2016-03-10) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running...
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
...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 you again. I really appreciate it. Sincerely, Milu On Sat, Apr 9, 2016 at 12:20 PM, Jim Lemon <dr...
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
...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 images will be accepted by the mailserver.) Nope...
2016 Apr 10
2
Adding Two-Headed Arrow in map legend
...e 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 > thin...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...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 images will be accepted by the mailserver.) -- David. > > Only a...
2016 Apr 10
2
Adding Two-Headed Arrow in map legend
...> > >>> > > >>> 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 O...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...gt; > 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))) > Your earlier question had a full world map. That was the context for Jim's...
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
...r 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...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...rate 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 images will be accepted by...
2016 Apr 12
2
Adding Two-Headed Arrow in map legend
...h 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) arrows(-19.75966, 54.75966, 33.60000, 71.40000,code=3) par(xpd=FALSE) As the output shows I cannot...
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
...ld 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. S...
2016 Apr 08
2
Adding Two-Headed Arrow in map legend
...a'),] # 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! Sincerely, Milu [[alternative HTML version deleted]]
2016 Apr 11
2
Adding Two-Headed Arrow in map legend
...>>> > > > >>> 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...
2016 Apr 12
2
Adding Two-Headed Arrow in map legend
...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=TR...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...alette <- 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 > > [...
2016 Apr 12
0
Adding Two-Headed Arrow in map legend
...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) > arrows(-19.75966, 54.75966, 33.60000, 71.40...
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
..._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 >> > &gt...