Displaying 19 results from an estimated 19 matches for "colourpalette".
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...
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
Forgot to copy the 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="n...
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)))
>
> I do...
2016 Apr 10
2
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",
>...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...at gmail.com> wrote:
>
> 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)))
I do get an arrow using same vers...
2016 Apr 08
2
Adding Two-Headed Arrow in map legend
...ot;, "4", "5", "6", "7", "8", "9", "10"), class = "data.frame")
n <- joinCountryData2Map(pece, joinCode="ISO3", nameJoinColumn="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(addMa...
2016 Apr 10
2
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, legendLabel...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...; Forgot to copy the 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...
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
...t; >>>
> >>> 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(-10...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...gt; 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...
2016 Apr 10
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=&qu...
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
...t;5", "6", "7", "8", "9", "10"), class = "data.frame")
> n <- joinCountryData2Map(pece, joinCode="ISO3", nameJoinColumn="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",
> addLeg...
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.4000...
2016 Apr 11
2
Adding Two-Headed Arrow in map legend
...gt; 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(addMapL...
2016 Apr 12
2
Adding Two-Headed Arrow in map legend
...; >
> > 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 th...
2016 Apr 12
0
Adding Two-Headed Arrow in map legend
...sb at gmail.com> wrote:
> 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')
>...
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
...nt 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)
>> >
>> >...
2010 Oct 20
1
need for speed on grid.rect
When I use grid.rect to print a multi-coloured grid, it is incredibly slow compared to a single colour grid, or even a two colour grid.
I've set out some simplified examples below. This is something I run literally thousands of times a day, so I would greatly appreciate any hints on how I might improve the speed???
library(grid)
pushViewport(viewport(
width = unit(100,