Dear Jim,
Good news to me!! Welcome.
I am fine. The code elegantly displayed the color.
I also tried to adjust the line:
draw.circle(lonmids[lon],latmids[lat],radius=sqrt(counts[lat,lon])/100,
border=countcol[lat,lon],col=countcol[lat,lon]) in order to reduce
the radius of the circle in order
Hi Ogbos,
Back on the air after a few days off. I don't have your data ("QUERY
2"), but I think this will fix your problem.
library(maps)
map("world")
box()
library(plotrix)
color.legend(-180,-150,100,-130,legend=c(0,25000,5,75000,10),
rect.col=color.scale(1:5,extremes=c("blue","red")),gr
Dear All,
Thank you for your advice.
I have looked at the plotrix package and with what I gathered, I
tinkered with the code below and obtain the attached graph:
oolt<-read.table("QUERY2",col.names=c("Lat","Lon"))
latlim<-c(20,45)
lonlim<-c(-180,180)
latbreaks<-seq(latlim[1],latlim[2],by=5)
lonb
Hi Ogbos,
I have been off the air for a couple of days. Look at the color.legend
function in the plotrix package.
Jim
On Tue, Dec 11, 2018 at 12:39 PM Ogbos Okike wrote:
>
> Dear Jim,
> I am still having trouble with the colour code. I await your help when
> you are less busy.
>
> Thank you.
> Be
Dear Jim,
I used a bit of my data in my attempt to follow the code.
I got the attached plot after some tweaks.
I would like to add horizontal color bar legend that could be used to
explain the number of lightning counts at different points on the
latitude band as plotted.
Thank you
Warm regards
Hi Ogbos,
Here is a slight modification of a method I use to display trip
density on a map:
oolt<-read.table(text="Lat Lon
30.1426 104.7854
30.5622 105.0837
30.0966 104.6213
29.9795 104.8430
39.2802 147.7295
30.2469 104.6543
26.4428 157.7293
29.4782 104.5590
32.3839 105.3293
26.4746 157.8411
25.10
Yes, there are many ways to do this. Search rseek.org for "2d density
plots". Also check the CRAN "Spatial" task view. Also see the kde2d
function in the MASS package and especially the examples there that use the
image() function to plot densities.
Cheers,
Bert
Bert Gunter
"The trouble with hav
Dear Contributors,
I have a data of the form:
Lat Lon
30.1426 104.7854
30.5622 105.0837
30.0966 104.6213
29.9795 104.8430
39.2802 147.7295
30.2469 104.6543
26.4428 157.7293
29.4782 104.5590
32.3839 105.3293
26.4746 157.8411
25.1014 159.6959
25.1242 159.6558
30.1607 104.9100
31.4900 -71.89
8 matches
Mail list logo