archeoViz {archeoViz}R Documentation

archeoViz

Description

Launch the archeoViz application to visualise, interactive explore, and expose on the web archaeological data from excavation

Usage

archeoViz(objects.df=NULL, refits.df=NULL, timeline.df=NULL,
          title=NULL, home.text=NULL, lang="en", set.theme="cosmo",
          square.size = 100, rotation = 0, grid.orientation = NULL,
          reverse.axis.values = NULL, reverse.square.names = NULL,
          add.x.square.labels = NULL, add.y.square.labels = NULL,
          class.variable = NULL, class.values = NULL,
          default.group = "by.layer", location.mode = NULL,
          map.z.val = NULL, map.density = "no", map.refits = NULL,
          plot3d.ratio = 1, plot3d.hulls = FALSE, hulls.class.values = NULL,
          plot3d.surfaces = NULL, plot3d.refits = NULL, point.size = 2,
          sectionX.x.val = NULL, sectionX.y.val = NULL, sectionX.refits = NULL, 
          sectionY.x.val = NULL, sectionY.y.val = NULL, sectionY.refits = NULL,
          camera.center = c(0, 0, 0), camera.eye = c(1.25, 1.25, 1.25),
          run.plots = FALSE, html.export = TRUE, table.export = TRUE
          )

Arguments

objects.df

data frame, with data documenting the location and type of archaeological remains.

refits.df

data frame, with two columns containin the ids of refitting objects.

timeline.df

data frame, with data documenting the year of excavation of the site's squares.

title

character. Title to display on the application.

home.text

character. HTML contents to display on the home page of the application.

lang

character. Language of the interface, one of 'de' (German), 'en' (English), 'es' (Spanish), 'fr' (French), 'it' (Italian), 'pt' (Portuguese), 'ro' (Romanian).

set.theme

character. Name of the shinytheme to use.

square.size

integer. Size (width and height) in centimeter of the squares in the grid system. Default value is 100 cm.

rotation

integer. Value (degrees) for the in-plane rotation of the point cloud.

grid.orientation

numerical. Orientation (degrees, positive or negative) of the grid (0 corresponds to a north orientation.

reverse.axis.values

character. Name of the axis or axes to be reversed (any combination of 'x', 'y', 'z').

reverse.square.names

character. Name of the axis or axes for which to reverse the order of the square labels (any combination of 'x', 'y', 'z').

add.x.square.labels

character. Additional square labels for the 'x' axis.

add.y.square.labels

character. Additional square labels for the 'y' axis.

class.variable

character. At the launch of the app, name of the variable to preselect.

class.values

character. At the launch of the app, names of the values to preselect.

default.group

character. At the launch of the app, preselection of the variable used to group data (one of 'by.layer' or 'by.variable').

location.mode

character. At the launch of the app, preselection of the location methods (any combination of 'exact', 'fuzzy', 'show.uncertainty').

map.z.val

double. Minimal and maximal Z depth coordinates values to display in the map plot, e.g. c(0, 30).

map.density

character. At the launch of the app, whether to compute and show density contours in the map plot (one of 'no', 'overall', 'by.variable').

map.refits

logical. Whether to show refits in the map plot.

plot3d.ratio

double. At the launch of the app, ratio of the vertical axis in the 3D plot.

plot3d.hulls

logical. At the launch of the app, whether to compute and show convex hulls in the 3D plot.

hulls.class.values

character. At the launch of the app, names of the points subsets for which to compute convex hulls.

plot3d.surfaces

logical. At the launch of the app, whether to compute and show regression in the 3D plot.

plot3d.refits

logical. At the launch of the app, whether to show refits on the 3D section plot.

point.size

integer. At the launch of the app, size of the points in the plots.

sectionX.x.val

double. At the launch of the app, minimal and maximal X coordinates values to display in the X section plot, e.g. c(10, 20).

sectionX.y.val

double. At the launch of the app, minimal and maximal Y coordinates values to display in the X section plot, e.g. c(10, 20).

sectionX.refits

logical. At the launch of the app, whether to show refits in the X section plot.

sectionY.x.val

double. At the launch of the app, minimal and maximal X coordinates values to display in the Y section plot, e.g. c(10, 20).

sectionY.y.val

double. At the launch of the app, minimal and maximal Y coordinates values to display in the Y section plot, e.g. c(10, 20).

sectionY.refits

logical. At the launch of the app, whether to show refits in the Y section plot.

camera.center

double. In 3D plot, x,y,z coordinates of the point to which the camera is oriented, to pass to the 'plotly::layout()' function. Default value: c(x=0, y=0, z=0).

camera.eye

double. In 3D plot, x,y,z coordinates of the camera's view point, to pass to the 'plotly::layout()' function. Default value: c(x=1.25, y=1.25, z=1.25).

run.plots

logical. Whether to immediately compute and show plots (without requiring the user to click on the buttons in the interface).

html.export

logical. Whether or not to allow figures to be exported as HTML widgets.

table.export

logical. Allow or disallow data transfer to third-party applications.

Details

This function launches the 'archeoViz' application. It can be used without parameter, allowing the user to input data through the "Input data" tab. Alternatively, the 'objects.df' parameter, and the optional 'refits.df' and 'timeline.df' parameters, can be used to input data.frames about the archaeological objects, the refitting relationships between these objects, and the chronology of the excavation, respectively.

The aspect of the application can be modified using the 'title', 'home.text', and 'set.theme' parameters. Possible values for the 'set.theme' parameter includes the allowed values for the 'shinytheme()' function (i.e., "cerulean", "cosmo", "cyborg", "darkly", "flatly", "journal", "lumen", "paper", "readable", "sandstone", "simplex", "slate", "spacelab", "superhero", "united", "yeti").

Note that the 'SEAHORS' package includes interactive features to format a dataset in 'archeoViz' format, export it or send it to an online 'archeoViz' instance.

Value

Launch the 'archeoViz' Shiny application.

Author(s)

Sebastien Plutniak <sebastien.plutniak at posteo.net>

See Also

shiny shinytheme plotly layout ggplot2 gam cxhull hullMesh SEAHORS

Examples

	## Not run: 
	# running the app with no particular data and settings:
	archeoViz()
	
	# running the app with a particular data set:
	objects <- demo_objects_data(1000)
	refits <- demo_refits_data(1000)
	archeoViz(objects.df=objects, refits.df=refits, title="My data set")
	
## End(Not run)

[Package archeoViz version 1.3.4 Index]