AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Define grid mapping11/6/2022 ![]() For instance, if zindex is set to 500, the pane will be named "tmap500".Grid systems are critical to analyzing large spatial data sets, partitioning areas of the Earth into identifiable grid cells. This parameter determines both the name of the pane and the z-index, which determines the pane order from bottom to top. By default, the tmap layers will therefore be placed in the custom panes "tmap401", "tmap402", etc., except for the base tile layers, which are placed in the standard "tile". Define grid mapping plus#By default, it is set to the layer number plus 400. Number of points to discretize a parallel or meridian (only applicable for curved grid lines) If = FALSE, should grid lines can be drawn? If = FALSE, should ticks can be drawn between the labels and the frame? Either one value for both x and y axis, or a vector two: the first for x and latter for y. Show labels inside the frame? By default FALSE ![]() The unit of this parameter is text line height. By default, it is determined automatically using the widths and heights of the tick labels. Space that is used for the labels and ticks for the y-axis when = FALSE. Space that is used for the labels and ticks for the x-axis when = FALSE. Note that when = FALSE and ticks = TRUE, the ticks will be adjusted accordingly. Margin between tick labels of y axis and the frame. Margin between tick labels of x axis and the frame. Number of digits after the decimal point if format="f", and the number of significant digits otherwise.Īdd the four cardinal directions (N, E, S, W) to the labels, instead of using negative coordiantes for west and south (so it assumes that the coordinates are positive in the north-east direction). If scientific=TRUE then "g", which means that numbers are formatted scientifically, i.e. Also, the numbers are automatically rounded to millions or billions if applicable. Otherwise, format="f", and parator,, and text.or.more are used. Should the labels be formatted scientifically? If so, square brackets are used, and the format of the numbers is "g". If specified, the list items scientific, format, and digits (see below) are not used. It should take a numeric vector, and should return a character vector of the same size. Parameters are:įunction to specify the labels. List of formatting options for the grid labels. Only 0, 90, 180, and 270 are valid values. Vector of two values: the first is the rotation angle (in degrees) of the tick labels on the x axis and the second is the rotation angle of the tick labels on the y axis. Either one value for both x and y axis, or a vector two: the first for x and latter for y. By default, the alpha transparency of col is taken. Many world maps are projected, but still have latitude longitude (epsg 4326) grid lines.Īlpha transparency of the grid lines. If specified, the grid lines are projected accordingly. For the labels, a pretty sequence is used, so the number of actual labels may be different than n.y. Preferred number of grid lines for the y axis. For the labels, a pretty sequence is used, so the number of actual labels may be different than n.x. Preferred number of grid lines for the x axis. If NA, it is specified with a pretty scale and n.y. If NA, it is specified with a pretty scale and n.x. Tm_grid ( x = NA, y = NA, n.x = NA, n.y = NA, projection = NA, col = NA, lwd = 1, alpha = NA, labels.show = TRUE, labels.size = 0.6, l = NA, labels.rot = c ( 0, 0 ), labels.format = list ( big.mark = "," ), labels.cardinal = FALSE, = 0, = 0, = NA, = NA, = FALSE, ticks = labels.show & !, lines = TRUE, ndiscr = 100, zindex = NA ) tm_graticules ( x = NA, y = NA, n.x = NA, n.y = NA, projection = 4326, labels.format = list ( suffix = intToUtf8 ( 176 )), labels.cardinal = TRUE.
0 Comments
Read More
Leave a Reply. |