search for: map_data

Displaying 20 results from an estimated 29 matches for "map_data".

Did you mean: mac_data
2017 Aug 08
2
map_data
Hello, I have some problems with calling the map_data function in maps package. Not so long ago it was not a problem, but for some reasons in July this year it became unavailable. For instance, if I call the following code: m<-map_data(?world?) The R returns to me: Error: cannot find function ?map_data? Kind regards, Poltoradnev Maxim Head of pro...
2017 Aug 09
0
map_data
Please keep the mailing list copied in replies. Yes, apparently the map_data function is in the ggplot2 package, not the maps package. -- Sent from my phone. Please excuse my brevity. On August 8, 2017 11:18:35 PM PDT, "??????????? ?????? ?????????" <Maksim.Poltoradnev at uralkali.com> wrote: >Dear Jeff, I figured out what the problem was: the map-data...
2018 Nov 14
2
Los puntos no tapen el mapa hecho ggplot
...que os copio abajo, pero me gustaría que me dibujase las líneas del mapa después de poner los puntos para que se vean. Puedo hacer los puntos más pequeños, pero entonces quedan separados y yo quiero que rellenen el mapa. Gracias, como siempre, Manuel print(ggplot(legend=FALSE)+geom_path(data=map_data('world'), aes(x=long, y=lat,group=group))+ theme(panel.background=element_blank())+theme(panel.grid.major = element_blank())+ theme(panel.grid.minor = element_blank())+theme(axis.text.x=element_blank(),axis.text.y=element_blank())+...
2020 Jul 28
2
Superponer mapas en ggplot
...las dos, que me permitiera hacer eso mismo, pero no encuentro la forma. Gracias por vuestra ayuda, una vez más, Manuel ggplot(legend=FALSE)+ geom_point(data=NCDS,aes(x=lon,y=lat,color= PA),shape=15,size=1) + scale_color_manual(values=c("white","grey70"))+ geom_path(data=map_data('world'), aes(x=long, y=lat,group=group)) ggplot(legend=FALSE)+ geom_point(data=NCDS,aes(x=lon,y=lat,color= ExtTG7085),shape=15,size=1) + # PTP o FTP scale_colour_gradient2(low = "white",high="RED",midpoint=0,guide="colourbar",limits=c(0,200))+ geom_path...
2012 Mar 20
1
passing xlim to coord_map in ggplot2
I'm sure this is smack-head moment, but I haven't been able to find an example of this on Nabble or SO, so thought I'd ask. This works: michigan <- map_data('county', 'michigan') mich_points <- data.frame(x = rnorm(n = 200, median(michigan[,1]), 0.75), y = rnorm(n = 200, median(michigan[,2]), 0.75)) ggplot() + geom_path(aes(long, lat, group = group), data = michigan) + geom_point(aes(x, y), data = mich_points) + coord_map('gilber...
2013 Nov 29
0
Formatting output of plotKML
...ionInfo(). The test data is in the UK's National Grid co-ordinate system so it gets converted before writing out as a SpacialPointsDataFrame. According to the ?plotKML documentation there is a colour argument; however attempting to call it with a vector of required colours fails: > plotKML(map_data_lat_long, + file.name='test.kml', + points_names = map_data_lat_long at data$Label, + colour = col2kml("red") # or map_data_lat_long at data$colour - with or without col2kml + ) Error in `[.data.frame`(obj at data, , as.character(colour)) : undefined columns selected Suspecting a...
2015 Oct 10
3
[PATCH] Extend Multiboot1 with support for ELF64 file format
...r_t addr, len; + + sh64 = (Elf64_Shdr *) ((char *)eh64 + eh64->e_shoff); + + len = eh64->e_shentsize * eh64->e_shnum; + /* + * Align this, but don't pad -- in general this means a bunch of + * smaller sections gets packed into a single page. + */ + addr = map_data(sh64, len, 4096, MAP_HIGH | MAP_NOPAD); + if (!addr) { + error("Failed to map symbol table\n"); + return NULL; + } + + mbinfo.flags |= MB_INFO_ELF_SHDR; + mbinfo.syms.e.addr = addr; + mbinfo.syms.e.num = eh64->e_shnum; + mbinfo.syms.e.size = eh64->e_shentsi...
2012 Feb 01
3
Plotting bar graph over a geographical map
...The points are added with the function geom_point. I know that there is a function geom_bar but I can't figure out how to use it. Thank you for your help, Simon ### R-code library(ggplot2) library(maps) measurements <- read.csv("all_podo.count.csv", header=T) allworld <- map_data("world") pdf("map.pdf") ggplot(measurements, aes(long, lat)) + geom_polygon(data = allworld, aes(x = long, y = lat, group = group), colour = "grey70", fill = "grey70") + geom_point(aes(size = ref)) + opts(axis.title.x = theme_blank(), axis.title.y = t...
2009 Apr 06
1
package: maps and spatstat question
I would like to use the output from the map function in the package maps for use in, say, the spatstat package. I don't quite understand the coordinates for the border of the state: Example: library(maps) iowa<-map("region","iowa) x<-iowa$x y<-iowa$y There are NA's and duplicated coordinates. What would I need to do to use this in the spatstat owin command?
2015 Oct 10
2
[PATCH 2/2] com32/mboot/map.c: removed trailing spaces
...Load 64-bit ELF */ regs.eip = eh64->e_entry; /* Can be overridden further down... */ @@ -378,7 +378,7 @@ struct multiboot_header *map_image(void *ptr, size_t len) continue; /* SHF_ALLOC sections should have PHDRs */ align = sh64[i].sh_addralign ? sh64[i].sh_addralign : 0; - addr = map_data((char *)ptr + sh64[i].sh_offset, + addr = map_data((char *)ptr + sh64[i].sh_offset, sh64[i].sh_size, align, MAP_HIGH); if (!addr) { error("Failed to map symbol section\n"); -- 2.0.0
2009 Jan 09
5
[PATCH] Enable PCI passthrough with stub domain.
...RT(spin_is_locked(&pcidevs_lock)); diff -r b9721b2766c1 xen/arch/x86/physdev.c --- a/xen/arch/x86/physdev.c Wed Jan 07 11:25:00 2009 +0000 +++ b/xen/arch/x86/physdev.c Thu Jan 08 18:58:36 2009 +0900 @@ -34,9 +34,6 @@ static int physdev_map_pirq(struct physd struct msi_info _msi; void *map_data = NULL; - if ( !IS_PRIV(current->domain) ) - return -EPERM; - if ( !map ) return -EINVAL; @@ -49,6 +46,14 @@ static int physdev_map_pirq(struct physd { ret = -ESRCH; goto free_domain; + } + else + { + if ( !IS_PRIV_FOR(current-&g...
2018 Dec 12
2
Subset dentro de un for
...xis.ticks = element_blank())+xlab("") + ylab("")+ geom_point(data=df2,aes(x=lon,y=lat, color= GT[i],size=2) + scale_colour_gradient(low=("white"),high=("red"),guide="colourbar",limits=c(0,max))+ geom_path(data=map_data('world'), aes(x=long, y=lat,group=group))+ labs(title = paste("5026 Minimum number of IFd species to go extinct")))) } Quoting Carlos Ortega <cof en qualityexcellence.es>: > Esta es una forma... > >> for(i in c('Ozone', 'Solar.R&...
2018 Dec 12
2
Subset dentro de un for
...t;") + ylab("")+ >>         geom_point(data=df2,aes(x=lon,y=lat, >> >>         color= GT[i],size=2) + >> >> scale_colour_gradient(low=("white"),high=("red"),guide="colourbar",limits=c(0,max))+ >>         geom_path(data=map_data('world'), aes(x=long, >> y=lat,group=group))+ >>         labs(title =  paste("5026 Minimum number of IFd species to go >> extinct")))) >> >> } >> >> >> >> >> >> >> >> >> Quoting Carlos Ortega <c...
2014 Nov 22
3
Use z size specifier for printf-ing size_t variable
..."%08x%08x%08x%08x", next_ino++, mode, 0, 0, 1, 0, len, 0, 1, major, minor, namelen + 1, 0); memcpy(bp, filename, namelen); diff --git a/com32/mboot/map.c b/com32/mboot/map.c index 84f3b20..4b0baa2 100644 --- a/com32/mboot/map.c +++ b/com32/mboot/map.c @@ -61,7 +61,7 @@ addr_t map_data(const void *data, size_t len, size_t align, int flags) return 0; } - dprintf("Mapping 0x%08x bytes (%#x pad) at 0x%08x\n", len, pad, start); + dprintf("Mapping 0x%08zx bytes (%#x pad) at 0x%08x\n", len, pad, start); if (start + len + pad > mboot_high_wat...
2005 Jul 20
1
maps and data for german federal states
dear R-tists, i want to graph information for the German Federal States (Bundeslaender) using the maps package. unfortunately there is no maps for the German Bundeslaender. does anyone have an idea / a source where to get map data that can be used in the maps package that graphs structures below the country level. in the long run it would also be interesting to integrate Swiss Cantons and
2005 Sep 08
1
Using R map data to determine associated state for a coordinate?
Hi! I have no idea if this is maybe an easy task utilizing R since I read there is geographical map data in some package: I have a huge number of geographical points with their coordinates in Germany. Now I want to determine for each point in which "Bundesland" = state it is located. Can anybody tell me if this is doable relatively easy in R and if so give me some hints or links
2006 Apr 03
1
Maps of Canada and some (very) simple instructions
I am a very new user of R (ver 2.2.1 & Windows XP) I would like to see if I can plot some simple data (Number of people in certain regions of Canada and within Ontario and Quebec. Can anyone suggest a) a souce of Canadian maps and b) some simple worked examples of using maps. At the moment I have managed to load the map and mapdata libraries but that is about the extend of my knowledge.
2009 Feb 25
0
ggplot2 0.8.2
...lot in use. If you're interested, you can also sign up to the ggplot2 mailing list at http://groups.google.com/group/ggplot2, or track development at http://github.com/hadley/ggplot2 ggplot2 0.8.2 (2008-02-23) ---------------------------------------- New features * borders, fortify.map and map_data to make it easier to draw map borders and choropleth maps * cut_interval and cut_number utility functions to discretise continuous variables * stat_summary has reparameterised to make it easier to specify different summary functions. It now has four parameters: fun.y, fun.ymin and fun.ymax; and...
2009 Feb 25
0
ggplot2 0.8.2
...lot in use. If you're interested, you can also sign up to the ggplot2 mailing list at http://groups.google.com/group/ggplot2, or track development at http://github.com/hadley/ggplot2 ggplot2 0.8.2 (2008-02-23) ---------------------------------------- New features * borders, fortify.map and map_data to make it easier to draw map borders and choropleth maps * cut_interval and cut_number utility functions to discretise continuous variables * stat_summary has reparameterised to make it easier to specify different summary functions. It now has four parameters: fun.y, fun.ymin and fun.ymax; and...
2009 Feb 06
1
Introduction to maps (of Denmark)?
Dear R-listers, I am using R for Windows Vista 64-bit. I have no experience working with maps, but now I have to plot a map of Denmark in which each Danish county is color-coded according to its incidence rate of a particular disease. My problem is that I don't know where to start. I have read the help files to packages like 'mapplot', and their examples indicate that I am on the