## Not run:
# #####################################################
# # Example 1 #
# #####################################################
#
# geoplot()
# pos<- list(lat = 63.5,lon=-11.75)
# geosubplot(geoplot(faeroes,pch=" ",country =faeroes,new=T)
# ,pos,fill=T)
# # Plots the Faeroes on a plot with Iceland. Be sure to
# # use new = T if geoplot is called again.
#
# #####################################################
# # Example 2 #
# #####################################################
#
# geoplot()
# large.geopar <- geopar # Parameters saved.
# pos <- list(lat=c(63,64),lon=c(-27,-24))
# geosubplot(geoplot(island, new=T,grid=F,type="l"),pos)
#
# geotext(65,-18,"subplot") # Text on subplot.
# small.geopar <- geopar # Parameters for subplot saved.
#
# # geopar <- large.geopar # Make big plot active.
# # Unless you are working directly with the .Data dir of the
# # geolibrary this assignment will not work, must use:
# assign("geopar",large.geopar,where=0)
#
# geotext(65,-18,"Big plot") # Text on big plot.
#
# # Another subplot.
#
# pos <- list(lat=c(63,64),lon=c(-17,-14))
# geosubplot(geoplot(island,new=T,grid=F,type="l"),pos,fill=T)
# # Another subplot drawn.
# geotext(65,-18,"subplot # 2")
#
# small.geopar.2 <- geopar # parameters for subplot # 2 saved.
# # geopar <- large.geopar # Big plot made active again
# # Same as above, instead use:
# assign("geopar",large.geopar,where=0)
#
# # See also similar example in geopar.
# ## End(Not run)
Run the code above in your browser using DataLab