generate_csv_layer_row: A Generating Row for CSV Layer Function

Description Usage Arguments Examples

View source: R/generate_csv_layer_row_function.R

Description

Generally used after the overwrite_sheet_function(), the generate_csv_layer_row() function allows for the generation of a new data layer for input into the EarthTime CSV layers sheet. This function is usually followed up by append_new_data_layer_to_CSV_layers().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
generate_csv_layer_row(
  Enabled = TRUE,
  Share_Link_Identifier,
  Category,
  Name,
  Credits,
  Base_Layer = NA,
  Custom_slider_ticks = NA,
  Start_Date,
  End_Date,
  Step = 1,
  URL,
  Scaling,
  Color_Scaling = NA,
  Map_Type,
  Color,
  External_GeoJSON = NA,
  Name_Key = NA,
  Show_Graph = NA,
  Graph_Title = NA,
  Graph_Plot_Colors = NA,
  Graph_Plots_First_Visible = NA,
  Graph_X_Axis_Label = NA,
  Graph_Y_Axis_Label = NA,
  Graph_Y_Axis_Min = NA,
  Graph_Y_Axis_Max = NA,
  Graph_X_Axis_Label_Interval = NA,
  Legend_Content = "auto",
  Legend_Key,
  Load_Data_Function = NA,
  Set_Data_Function = NA,
  Number_of_Levels = NA,
  Number_of_Attributes = NA,
  Vertex_Shader = NA,
  Fragment_Shader = NA,
  Draw_Function = NA,
  Playback_Rate = 1,
  Master_Playback_Rate = 1,
  Colormap_Src,
  Layer_Description = NA,
  Featured_Themes = NA,
  Draw_Options = NA,
  Set_Data_Options = NA,
  Extras_Options = NA,
  Draw_Order = NA,
  Timeline_Type = NA,
  Layer_Constraints = NA,
  Mapbox = NA,
  Draw_Layer_Function = NA
)

Arguments

Enabled

Determines if the data layers appears in the Explore view of EarthTime. Defaults to TRUE.

Share_Link_Identifier

This is the unique identifier that will be issued to the data layer. Please ensure that there are no other data layers with the same name; otherwise, it will cause conflicts and normal functioning and operation of the EarthTime will be impacted.

Category

Name of the data layer's category

Name

Name of the data layer. Defaults to the dataframe's name

Credits

Citation for the data layers

Base_Layer

Ties a specific base layer with the data layer. Defaults to NULL.

Custom_slider_ticks

CREATE LAB special use case. Defaults to NULL.

Start_Date

Column number for the first date in the data frame.

End_Date

Column number for the last date in the data frame.

Step

Time period interval to run the data in the timeline. Defaults to 1.

URL

Proxy URL for data layer to be read into the EarthTime engine.

Scaling

d3-scale variables. Scales are a convenient abstraction for a fundamental task in visualization: mapping a dimension of abstract data to a visual representation. Although most often used for position-encoding quantitative data, such as mapping a measurement in meters to a position in pixels for dots or color spectrum in EarthTime; moreover, these scales are meant to represent the quantitative data ingested into EarthTime. Depending on the distribution, one should consider the following scales: "Linear", "Power", "Log", or "SquareRoot". Inputting the aforementioned scale variables will output a domain of "minValue, maxValue" with a range of "O,100" for the d3 function.

Color_Scaling

CREATE LAB special use case. Defaults to NULL.

Map_Type

Type of map to visualize. Acceptable variables include: "Choropleth", "Bubble", "Bivalent Bubble", "Point", "Point Flow"

Color

RGB color value. Acceptable format is "0.0, 0.0, 0.0"

External_GeoJSON

Link to external GeoJSON file. Defaults to NULL.

Name_Key

Data column name for GEOJSON shapes. Defaults to NULL.

Show_Graph

CREATE LAB special use case. Defaults to NULL.

Graph_Title

CREATE LAB special use case. Defaults to NULL.

Graph_Plot_Colors

CREATE LAB special use case. Defaults to NULL.

Graph_Plots_First_Visible

CREATE LAB special use case. Defaults to NULL.

Graph_X_Axis_Label

CREATE LAB special use case. Defaults to NULL.

Graph_Y_Axis_Label

CREATE LAB special use case. Defaults to NULL.

Graph_Y_Axis_Min

CREATE LAB special use case. Defaults to NULL.

Graph_Y_Axis_Max

CREATE LAB special use case. Defaults to NULL.

Graph_X_Axis_Label_Interval

CREATE LAB special use case. Defaults to NULL.

Legend_Content

Legend content displayed in explore view. Defaults to "auto". For other legend types, input HTML here.

Legend_Key

Short description of the data layer for use in the legend.

Load_Data_Function

For use in point map types. Defaults to NULL; otherwise, input function such as: "WebGLVectorTile2.prototype._loadData".

Set_Data_Function

For use in point map types. Defaults to NULL; otherwise, input function such as: "WebGLVectorTile2.prototype._setBufferData".

Number_of_Levels

CREATE LAB special use case. Defaults to NULL.

Number_of_Attributes

For use in point map types. Defaults to NULL; otherwise, input number of attributes such as "5".

Vertex_Shader

For use in point map types. Defaults to NULL; otherwise, input shader such as: "WebGLVectorTile2.PointSizeColorEpochVertexShader".

Fragment_Shader

For use in point map types. Defaults to NULL; otherwise, input shader such as: "WebGLVectorTile2.PointColorFragmentShader".

Draw_Function

For use in point map types. Defaults to NULL; otherwise, input function such as: "WebGLVectorTile2.prototype._drawPointSizeColorEpoch".

Playback_Rate

Natural speed of the data layer timeline. Defaults to 1.

Master_Playback_Rate

Override speed of the data layer timeline. Defaults to 1.

Colormap_Src

URL of the color spectrum for choropleths. Refer to "https://tiles.earthtime.org/colormaps/black-background.html".

Layer_Description

CREATE LAB special use case. Defaults to NULL.

Featured_Themes

CREATE LAB special use case. Defaults to NULL.

Draw_Options

CREATE LAB special use case. Defaults to NULL.

Set_Data_Options

CREATE LAB special use case. Defaults to NULL.

Extras_Options

CREATE LAB special use case. Defaults to NULL.

Draw_Order

CREATE LAB special use case. Defaults to NULL.

Timeline_Type

CREATE LAB special use case. Defaults to NULL.

Layer_Constraints

CREATE LAB special use case. Defaults to NULL.

Mapbox

CREATE LAB special use case. Defaults to NULL.

Draw_Layer_Function

CREATE LAB special use case. Defaults to NULL.

Examples

1

andrewcberkley/EarthTimeR documentation built on Dec. 19, 2021, 3:33 a.m.