Description Usage Arguments Value Author(s) References Examples
The line chart function plots an attribute of a map data. It also returns tabular data or frequencies
1 2 3 4 5 6 7 8 9 |
source |
Folder path of the layer or map or data. Please quote the full folder path with forward slashes "/". You can use R object as a source but you must set the layer parameter to "nofile"; see below |
layer |
The layer map in the folder that you want to work with. It is the file name of map. This is case sensitive, please. In case you want to use non spatial data such as ".csv", ".txt", "dat" or ".tab" insert the full file name as layer. In case of using R object as a source set "layer" parameter to "nofile" |
type |
The type of line chart you want to use. It can take "p","l","o","b","c","s","S", or "h". Set it to "map" if you want a map to be drawn for the attribute |
attributes |
The attributes or variables of the map name of the layer or the map you want use. This function takes only two attributes separated by comma: see example below. In case of using non spatial data such as ".csv", ".txt", "dat" or ".tab" attributes are variable or column names |
label |
The labeling title of the chart. |
col |
The colour of the chart |
x |
An object of class |
object |
an object of class |
... |
any other R parameters can be added |
Objects of the class that basically list its elements
data |
Original data for the model |
table |
Frequency of the original data |
source |
Folder path of the layer or map |
layer |
The layer map in the source folder |
attribute |
The attribute name of the layer or the map that was used. |
label |
he labeling title of the chart. |
George Owusu
Bivand, R. S., Pebesma, E. J., Gomez-Rubio, V. (2008) Applied Spatial Data Analysis with R. Springer Kabacoff, I. R. (2011) R in Action. Data Analysis and Graphics with R. Manning Publications Co
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
#example one: using non spatial data
source<- system.file("external", package = "mgraph")
layer="farms"
attributes="Age,FArea"
graph=linemap(source,layer,attributes,type="l",col='black',label="")
summary(graph)
print(graph)
plot(graph)
#example two: using R object
data(meuse.all, package="gstat")
linemap(meuse.all,layer="nofile",attributes="zinc,copper",type="l")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.