Package Information

General Information about the package

loon

loon: A Toolkit for Interactive Data Visualization and Exploration

l_help()

Open a browser with loon's combined (TCL and R) documentation website

l_web()

Open a browser with loon's R documentation webpage

Main Plotting Functions

These are the main functions needed to create plots

l_plot_arguments

Arguments common to l_plot functions

l_plot()

Create an interactive loon plot widget

l_plot(<decomposed.ts>)

The l_plot method for classical seasonal decomposition of a time series by moving averages (i.e. via decompose)

l_plot(<default>)

The default l_plot for plotting data

l_plot(<density>)

The l_plot method for density objects.

l_plot(<map>)

Create a plot with a map layer

l_plot(<stl>)

The l_plot methods for seasonally decomposed by loess time series objects (i.e. via stl)

l_plot3D()

Create an interactive loon 3d plot widget

l_plot3D(<default>)

The default l_plot method to create 3d interactive scatterplot

l_plot_inspector()

Create a Scatterplot Inspector

l_plot_inspector_analysis()

Create a Scatterplot Analysis Inspector

l_plot_ts()

Draw a decomposed time series loon plot

l_hist()

Create an interactive histogram

l_pairs()

An interactive scatterplot matrix

l_serialaxes()

Create a Serialaxes Widget

plot(<loon>)

Plot the current view of any loon plot in the current device.

plot(<loongraph>)

Plot a loon graph object with base R graphics

Access Modify

Access Modify

l_cget()

Query a Plot State

l_configure()

Modify one or multiple plot states

l_info_states()

Retrieve Information about the States of a Loon Widget

l_state_names()

Get State Names of Loon Object

names(<loon>)

Get State Names of Loon Object

l_getLinkedStates()

Query the States that are Linked with Loon's Standard Linking Model

l_setLinkedStates()

Modify States of a Plot that are Linked in Loon's Standard Linking Model

l_getOption()

Get the value of a loon display option

l_setOption()

Set the value of a loon display option

l_userOptions()

Get the names of all loon display options that can be set by the user.

l_getOptionNames()

Get the names of all loon display options

l_getPlots()

For the target compound loon plot, determines all the loon plots in that compound plot.

l_scale3D()

Scale for 3d plotting

l_scaleto_active()

Change Plot Region to Display All Active Data

l_scaleto_layer()

Change Plot Region to Display All Elements of a Particular Layer

l_scaleto_plot()

Change Plot Region to Display the All Data of the Model Layer

l_scaleto_selected()

Change Plot Region to Display All Selected Data

l_scaleto_world()

Change Plot Region to Display All Plot Data

l_move_grid()

Arrange Points or Nodes on a Grid

l_move_halign()

Horizontally Align Points or Nodes

l_move_hdist()

Horizontally Distribute Points or Nodes

l_move_jitter()

Jitter Points Or Nodes

l_move_reset()

Reset Temporary Point or Node Locations to the x and y states

l_move_valign()

Vertically Align Points or Nodes

l_move_vdist()

Vertically Distribute Points or Nodes

l_redraw()

Force a Content Redraw of a Plot

l_size()

Query Size of a Plot Display

`l_size<-`()

Resize Plot Widget

l_zoom()

Zoom from and towards the center

l_copyStates()

A generic function to transfer the values of the states of one `loon` structure to another.

l_saveStatesRDS()

Save the info states of a loon plot widget as an RDS file

Miscellaneous

Miscellaneous

l_resize()

Resize Plot Widget

l_export()

Export a loon plot as an image

l_export_valid_formats()

Return a list of the available image formats when exporting a loon plot

`l_aspect<-`()

Set the aspect ratio of a plot

l_aspect()

Query the aspect ratio of a plot

l_setAspect()

Set the aspect ratio of a plot

l_subwin()

Create a child widget path

l_widget()

Dummy function to be used in the Roxygen documentation

l_setTitleFont()

Set the title font of all loon displays

l_getLocations()

For the target compound loon plot, determines location (only and excluding the grobs) arguments to pass to `gridExtra::arrangeGrob()`

l_userOptionDefault()

Get loon's system default value for the named display option.

Colors

Colors

color_loon()

Create a palette with loon's color mapping

tkcolors()

List the valid Tk color names

hex12tohex6()

Convert 12 hexadecimal digit color representations to 6 hexidecimal digit color representations

l_hexcolor()

Convert color names to their 12 digit hexadecimal color representation

l_getColorList()

Get loon's color mapping list

loon_palette()

Loon's color generator for creating color palettes

l_colRemoveAlpha()

Convert color representations having an alpha transparency level to 6 digit color representations

l_setColorList()

Use custom colors for mapping nominal values to distinct colors

l_setColorList_ColorBrewer()

Set loon's color mapping list to the colors from ColorBrewer

l_setColorList_baseR()

Set loon's color mapping list to the colors from base R

l_setColorList_ggplot2()

Set loon's color mapping list to the colors from ggplot2

l_setColorList_hcl()

Set loon's color mapping list to the colors from hcl color wheen

l_setColorList_loon()

Set loon's color mapping list to the colors from loon defaults

Layering

Layers

l_layer(<Line>)

Layer line in Line object

l_layer(<Lines>)

Layer lines in Lines object

l_layer(<Polygon>)

Layer polygon in Polygon object

l_layer(<Polygons>)

Layer polygons in Polygons object

l_layer()

Loon layers

l_layer(<SpatialLines>)

Layer lines in SpatialLines object

l_layer(<SpatialLinesDataFrame>)

Layer lines in SpatialLinesDataFrame object

l_layer(<SpatialPoints>)

Layer points in SpatialPoints object

l_layer(<SpatialPointsDataFrame>)

Layer points in SpatialPointsDataFrame object

l_layer(<SpatialPolygons>)

Layer polygons in SpatialPolygons object

l_layer(<SpatialPolygonsDataFrame>)

Layer polygons in SpatialPolygonDataFrame

l_layer(<density>)

Layer Method for Kernel Density Estimation

l_layer(<map>)

Add a Map of class map as Drawings to Loon plot

l_layer_bbox()

Get the bounding box of a layer.

l_layer_contourLines()

Layer Contour Lines

l_layer_delete()

Delete a layer

l_layer_demote()

Moves the layer to be a child of its right group layer sibling

l_layer_expunge()

Delete a layer and all its descendants

l_layer_getChildren()

Get children of a group layer

l_layer_getLabel()

Get layer label.

l_layer_getParent()

Get parent layer id of a layer

l_layer_getType()

Get layer type

l_layer_group()

layer a group node

l_layer_groupVisibility()

Queries visibility status of decendants

l_layer_heatImage()

Display a Heat Image

l_layer_hide()

Hide a Layer

l_layer_ids()

List ids of layers in Plot

l_layer_index()

Get the order index of a layer among its siblings

l_layer_isVisible()

Return visibility flag of layer

l_layer_layerVisibility()

Returns logical value for whether layer is actually seen

l_layer_line()

Layer a line

l_layer_lines()

Layer a lines

l_layer_lower()

Switch the layer place with its sibling to the right

l_layer_move()

Move a layer

l_layer_oval()

Layer a oval

l_layer_points()

Layer a points

l_layer_polygon()

Layer a polygon

l_layer_polygons()

Layer a polygons

l_layer_printTree()

Print the layer tree

l_layer_promote()

Moves the layer up to be a left sibling of its parent

l_layer_raise()

Switch the layer place with its sibling to the left

l_layer_rasterImage()

Layer a Raster Image

l_layer_rectangle()

Layer a rectangle

l_layer_rectangles()

Layer a rectangles

l_layer_relabel()

Change layer label

l_layer_show()

Show or unhide a Layer

l_layer_text()

Layer a text

l_layer_texts()

Layer a texts

l_layers_inspector()

Create a Layers Inspector

print(<l_layer>)

Print a summary of a loon layer object

Glyphs

Glyphs

l_glyph_add()

Add non-primitive glyphs to a scatterplot or graph display

l_glyph_add(<default>)

Default method for adding non-primitive glyphs

l_glyph_add_image()

Add an image glyphs

l_glyph_add_pointrange()

Add a Pointrange Glyph

l_glyph_add_polygon()

Add a Polygon Glyph

l_glyph_add_serialaxes()

Add a Serialaxes Glyph

l_glyph_add_text()

Add a Text Glyph

l_glyph_delete()

Delete a Glyph

l_glyph_getLabel()

Get Glyph Label

l_glyph_getType()

Get Glyph Type

l_glyph_ids()

List glyphs ids

l_glyph_relabel()

Relabel Glyph

l_glyphs_inspector()

Create a Glyphs Inspector

l_glyphs_inspector_image()

Create a Image Glyph Inspector

l_glyphs_inspector_pointrange()

Create a Pointrange Glyph Inspector

l_glyphs_inspector_serialaxes()

Create a Serialaxes Glyph Inspector

l_glyphs_inspector_text()

Create a Text Glyph Inspector

l_primitiveGlyphs()

The primitive glyphs available to a scatterplot or graph display

l_image_import_array()

Import Greyscale Images as Tcl images from an Array

l_image_import_files()

Import Image Files as Tk Image Objects

l_imageviewer()

Display Tcl Images in a Simple Image Viewer

l_make_glyphs()

Make arbitrary glyphs with R graphic devices

Bindings

Bindings

l_bind_canvas()

Create a Canvas Binding

l_bind_canvas_delete()

Delete a canvas binding

l_bind_canvas_get()

Get the event pattern and callback Tcl code of a canvas binding

l_bind_canvas_ids()

List canvas binding ids

l_bind_canvas_reorder()

Reorder the canvas binding evaluation sequence

l_bind_context()

Add a context binding

l_bind_context_delete()

Delete a context binding

l_bind_context_get()

Get the event pattern and callback Tcl code of a context binding

l_bind_context_ids()

List context binding ids

l_bind_context_reorder()

Reorder the context binding evaluation sequence

l_bind_glyph()

Add a glyph binding

l_bind_glyph_delete()

Delete a glyph binding

l_bind_glyph_get()

Get the event pattern and callback Tcl code of a glyph binding

l_bind_glyph_ids()

List glyph binding ids

l_bind_glyph_reorder()

Reorder the glyph binding evaluation sequence

l_bind_item()

Create a Canvas Binding

l_bind_item_delete()

Delete a item binding

l_bind_item_get()

Get the event pattern and callback Tcl code of a item binding

l_bind_item_ids()

List item binding ids

l_bind_item_reorder()

Reorder the item binding evaluation sequence

l_bind_layer()

Add a layer binding

l_bind_layer_delete()

Delete a layer binding

l_bind_layer_get()

Get the event pattern and callback Tcl code of a layer binding

l_bind_layer_ids()

List layer binding ids

l_bind_layer_reorder()

Reorder the layer binding evaluation sequence

l_bind_navigator()

Add a navigator binding

l_bind_navigator_delete()

Delete a navigator binding

l_bind_navigator_get()

Get the event pattern and callback Tcl code of a navigator binding

l_bind_navigator_ids()

List navigator binding ids

l_bind_navigator_reorder()

Reorder the navigator binding evaluation sequence

l_bind_state()

Add a state change binding

l_bind_state_delete()

Delete a state binding

l_bind_state_get()

Get the event pattern and callback Tcl code of a state binding

l_bind_state_ids()

List state binding ids

l_bind_state_reorder()

Reorder the state binding evaluation sequence

l_currentindex()

Get layer-relative index of the item below the mouse cursor

l_currenttags()

Get tags of the item below the mouse cursor

l_after_idle()

Evaluate a function on once the processor is idle

Graph

Graph

l_graph()

Generic funtction to create an interactive graph display

l_graph(<default>)

Create a graph display based on node names and from-to edges list

l_graph(<graph>)

Create a graph display based on a graph object

l_graph(<loongraph>)

Create a graph display based on a loongraph object

l_graph_inspector()

Create a Graph Inspector

l_graph_inspector_analysis()

Create a Graph Analysis Inspector

l_graph_inspector_navigators()

Create a Graph Navigator Inspector

l_graphswitch()

Create a graphswitch widget

l_graphswitch_add()

Add a graph to a graphswitch widget

l_graphswitch_add(<default>)

Add a graph that is defined by node names and a from-to edges list

l_graphswitch_add(<graph>)

Add a graph to the graphswitch widget using a graph object

l_graphswitch_add(<loongraph>)

Add a graph to the graphswitch widget using a loongraph object

l_graphswitch_delete()

Delete a graph from the graphswitch widget

l_graphswitch_get()

Return a Graph as a loongraph Object

l_graphswitch_getLabel()

Query Label of a Graph in the Graphswitch Widget

l_graphswitch_ids()

List the ids of the graphs in the graphswitch widget

l_graphswitch_move()

Move a Graph in the Graph List

l_graphswitch_relabel()

Relabel a Graph in the Graphswitch Widget

l_graphswitch_reorder()

Reorder the Positions of the Graphs in the Graph List

l_graphswitch_set()

Change the Graph shown in the Active Graph Widget

as.graph()

Convert a loongraph object to an object of class graph

as.loongraph()

Convert a graph object to a loongraph object

complement()

Create the Complement Graph of a Graph

complement(<loongraph>)

Create the Complement Graph of a loon Graph

completegraph()

Create a complete graph or digraph with a set of nodes

graphreduce()

Make each space in a node apprear only once

loongraph()

Create a graph object of class loongraph

linegraph()

Create a linegraph

linegraph(<loongraph>)

Create a linegraph of a graph

l_getGraph()

Extract a loongraph or graph object from loon's graph display

ndtransitiongraph()

Create a n-d transition graph

Navigation Graphs

Navigation

l_ng_plots()

2d navigation graph setup with with dynamic node fitering using a scatterplot matrix

l_ng_plots(<default>)

Select 2d spaces with variable associated measures displayed in scatterplot matrix

l_ng_plots(<measures>)

2d Navigation Graph Setup with dynamic node fitering using a scatterplot matrix

l_ng_plots(<scagnostics>)

2d Navigation Graph Setup with dynamic node fitering based on scagnostic measures and by using a scatterplot matrix

l_ng_ranges()

2d navigation graph setup with with dynamic node fitering using a slider

l_ng_ranges(<default>)

Select 2d spaces with variable associated measures using a slider

l_ng_ranges(<measures>)

2d Navigation Graph Setup with dynamic node fitering using a slider

l_ng_ranges(<scagnostics>)

2d Navigation Graph Setup with dynamic node fitering based on scagnostic measures and using a slider

l_navgraph()

Explore a dataset with the canonical 2d navigation graph setting

l_navigator_add()

Add a Navigator to a Graph

l_navigator_delete()

Delete a Navigator

l_navigator_getLabel()

Query the Label of a Navigator

l_navigator_getPath()

Get the sequence of nodes of a navigator's current path

l_navigator_ids()

List Navigators

l_navigator_relabel()

Modify the Label of a Navigator

l_navigator_walk_backward()

Have the Navigator Walk Backward on the Current Path

l_navigator_walk_forward()

Have the Navigator Walk Forward on the Current Path

l_navigator_walk_path()

Have the Navigator Walk a Path on the Graph

l_create_handle()

Create a loon object handle

Contexts

Contexts are

l_context_add_context2d()

Create a context2d navigator context

l_context_add_geodesic2d()

Create a geodesic2d navigator context

l_context_add_slicing2d()

Create a slicind2d navigator context

l_context_delete()

Delete a context from a navigator

l_context_getLabel()

Query the label of a context

l_context_ids()

List context ids of a navigator

l_context_relabel()

Change the label of a context

Grid Grobs

Grid Grobs

loonGrob()

Create a grid grob from a loon widget handle

grid.loon()

Create and optionally draw a grid grob from a loon widget handle

condGrob()

Create a named grob or a template grob depending on a test

l_createCompoundGrob()

For the target compound loon plot, creates the final grob from the class of the `target` and the `arrangeGrob.args`

l_get_arrangeGrobArgs()

For the target (compound) loon plot, determines all arguments (i.e. including the grobs) to be passed to `gridExtra::arrangeGrob()` so as to determine the layout in `grid` graphics.

loonGrob_layoutType()

A generic function used to distinguish whether only the locations of plots will be used to arrange them in a grob, or whether all arguments to `gridExtra::arrangeGrob()` will be used.

Data

data

UsAndThem

Data to re-create Hans Rosling's famous "Us and Them" animation

olive

Fatty Acid Composition of Italian Olive Oils

oliveAcids

Just the Fatty Acid Composition of Italian Olive Oils

oliveLocations

Geographic location of each Italian olive growing area named in the olive data.

minority

Canadian Visible Minority Data 2006

Inspectors

inspectors

l_glyphs_inspector()

Create a Glyphs Inspector

l_graph_inspector()

Create a Graph Inspector

l_hist_inspector()

Create a Histogram Inspector

l_layers_inspector()

Create a Layers Inspector

l_loon_inspector()

Create a loon inspector

l_plot_inspector()

Create a Scatterplot Inspector

l_serialaxes_inspector()

Create a Serialaxes Analysis Inspector

l_hist_inspector_analysis()

Create a Histogram Analysis Inspector

l_worldview()

Create a Worldview Inspector

Others

others

l_Rlist2nestedTclList()

Convert an R list to a nested Tcl list

l_nestedTclList2Rlist()

Convert a Nested Tcl List to an R List

l_data()

Convert an R data.frame to a Tcl dictionary

l_throwErrorIfNotLoonWidget()

Throw an error if string is not associated with a loon widget

l_toR()

Convert a Tcl Object to some other R object

l_isLoonWidget()

Check if a widget path is a valid loon widget

L2_distance()

Euclidean distance between two vectors, or between column vectors of two matrices.

Measures

measures

measures1d()

Closure of One Dimensional Measures

measures2d()

Closure of Two Dimensional Measures

scagnostics2d()

Closure of Two Dimensional Scagnostic Measures

print(<measures1d>)

Print function names from measure1d object

print(<measures2d>)

Print function names from measure2d object