RadialAxisPlot

RadialAxisPlot[{y1,y2,,yn}]

generates a radial axis plot where the yi are displayed on radial axes equally spaced around the origin.

RadialAxisPlot[{data1,data2,}]

plots several datasets datai on the axes.

Details and Options

  • RadialAxisPlot is also known as radar plot, spider chart or star plot.
  • RadialAxisPlot is used to visualize multidimensional data by mapping each dimension to an axis, creating a unique shape. The shapes for different data points can then be compared with each other.
  • The data values yi can be given in the following forms:
  • yia real-valued number
    Quantity[yi,unit]a quantity with a unit
  • Values yi that are not of the forms previously shown are taken to be missing and are not shown.
  • The datai have the following forms and interpretations:
  • <|"k1"y1,"k2"y2,|>values {y1,y2,}
    {y1"lbl1",y2"lbl2",}, {y1,y2,}{"lbl1","lbl2",}values {y1,y2,} with labels {lbl1,lbl2,}
    SparseArrayvalues as a normal array
    TimeSeries,EventSeries,values from time series data
    QuantityArraymagnitudes
    WeightedDataunweighted values
  • The following wrappers w can be used for the datai:
  • Annotation[datai,label]provide an annotation for the data
    Button[datai,action]define an action to execute when the data is clicked
    Callout[datai,label]label the data with a callout
    Callout[datai,label,pos]place the callout at relative position pos
    EventHandler[datai,events]define a general event handler for the data
    Hyperlink[datai,uri]make the data a hyperlink
    Labeled[datai,label]label the data
    Labeled[datai,label,pos]place the label at relative position pos
    Legended[datai,label]identify the data in a legend
    PopupWindow[datai,cont]attach a popup window to the data
    StatusArea[datai,label]display in the status area on mouseover
    Style[datai,styles]show the data using the specified styles
    Tooltip[datai,label]attach a tooltip to the curve
  • Wrappers w can be applied at multiple levels:
  • {,w[yi],}wrap the value yi in data
    {,w[{xi,yi}],}wrap the point {xi,yi}
    w[datai]wrap the data
    w[{data1,}]wrap a collection of datai
    w1[w2[]]use nested wrappers
  • Callout, Labeled and Placed can use the following positions pos:
  • Automaticautomatically placed labels
    Above, Below, Before, Afterpositions around the curve
    "Inside","Outside"relative to the point along the axis
    {pos,epos}epos in label placed at relative position pos of the curve
  • RadialAxisPlot has the same options as Graphics, with the following additions and changes:
  • Axes Truewhether to draw axes
    AxesOrigin Automaticwhere to position the axes
    ColorFunction Automatichow to determine the coloring of lines
    ColorFunctionScaling Truewhether to scale arguments to ColorFunction
    Filling Truefilling under each line
    FillingStyle Automaticstyle to use for filling
    GridLines Automaticwhether to draw grid lines
    GridLinesStyle Automaticstyle to use for grid lines
    JoinedAutomaticwhether to join points
    MethodAutomaticwhat method to use
    PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
    PlotLayout Automatichow to position data
    PlotLegendsNonelegends for lines
    PlotMarkers Automaticmarkers to use to indicate each point
    PlotRange Automaticrange of values to include
    PlotStyle Automaticgraphics directives to determine the style of each line
    PlotTheme$PlotThemeoverall theme for the plot
    ScalingFunctionsNonehow to scale individual coordinates
  • The axes are arranged clockwise starting from the positive y axis.
  • By default, all the axes have the same plot range.
  • With AxesAutomatic, only the first axis will be shown if all of the axes have the same scale and plot range. If there are any differences, all the axes will be shown.
  • With the default setting PlotRangeAutomatic, all the axes use the same plot range.
  • PlotRangeAll uses a different plot range for each axis.
  • Options that apply to each axis, such as Axes, Ticks and PlotRange, can take the following forms:
  • suse setting s for each axis
    {s1,,sn}use per-axis setting s1 for the first axis, etc.
    {,pats,}use setting s for axis positions matching pattern pat
  • With the form {,pats,}, pat can be any pattern. The first pattern that matches an axis position will be used. If no pattern matches an axis position, the default value is used.
  • The arguments supplied to ColorFunction are y1,y2,,yn. By default, the color function arguments are scaled per axis to be between 0 and 1.
  • Possible settings for PlotLayout that show multiple points in a single plot panel include:
  • "Overlaid"show all the data overlapping
    "Stacked"accumulate the data
    "Percentile"accumulate and normalize the data
  • Possible settings for PlotLayout that show a single point in multiple plot panels include:
  • "Column"use separate curves in a column of panels
    "Row"use separate curves in a row of panels
    {"Column",k},{"Row",k}use k columns or rows
    {"Column",UpTo[k]},{"Row",UpTo[k]}use at most k columns or rows

Examples

open allclose all

Basic Examples  (3)

Plot multidimensional data:

Plot multiple datasets:

Use ColorFunction to style lines by the values on the first axis:

Scope  (22)

General Data  (6)

RadialAxisPlot visualize multidimensional data by placing each dimension on an axis with a shared origin:

Automatic PlotRange shows every axis in the same range:

PlotRangeAll shows every axis in its own range:

Plot multiple datasets:

Datasets with different lengths are padded with zero:

Data with nonreal values are left out:

Special Data  (2)

Use Quantity to include units with the data:

Plot the values in TimeSeries:

Keys in Association are automatically used as axes labels:

Data Wrapper  (4)

Use wrappers on datasets or collections of datasets:

Wrappers can be nested:

Use PopupWindow to provide additional drilldown information:

Button can be used to trigger any action:

Labeling and Legending  (6)

Use LabelingFunction to add individual labels to each dataset:

Use the index of datasets provided to LabelingFunction to construct labels:

Put labels before the lines:

Use Callout to add a label:

Use PlotLegends to add a bar legend to represent the colors from ColorFunction:

Use legends to identify the color groups:

Use Legended to add a legend:

Presentation  (4)

Multiple datasets are automatically colored to be distinct:

Provide explicit styling to different curves:

Use a theme with high-contrast background and line style:

Include a legend:

Options  (41)

Axes  (4)

By default, ticks are shared on all axes:

Different plot ranges force all axes to show ticks:

Specify which axes to show as a list:

Specify which axes to show as using rules:

AxesLabel  (2)

Specify labels for the axes:

Specify which axes should have labels:

AxesOrigin  (4)

Specify the starting angle:

Specify the radial axis orientation:

Specify the angular axis starting point:

ColorFunction  (1)

Color curves based on values on the first axis:

Color curves based on values on the fifth axis:

ColorFunctionScaling  (1)

Colors are scaled by default:

Show unscaled colors:

Filling  (6)

Filling is turned on by default:

Filling is from curve to curve in a stacked layout:

Turn off filling:

Fill between two curves, 1 and 2:

Fill between curves 1 and 2 with a specific style:

Stacked values fill to the curve below:

FillingStyle  (1)

Specify the filling style:

Frame  (2)

Draw a frame around the plot:

Use an inner frame:

FrameStyle  (2)

Change the frame style:

Use a different style on the inner frame:

GridLines  (3)

Radial grid lines are drawn automatically:

Specify grid lines:

Use different shapes as grid lines:

GridLinesStyle  (1)

Draw lines or arcs connecting axes:

PlotLayout  (4)

By default, curves are overlapped:

Use the "Stacked" layout:

With negative values:

Place the plots in a row:

Place the plots in a column:

PlotMarkers  (2)

There are several built-in sets of markers:

Use unique markers to identify different datasets:

PlotRange  (3)

By default, axes share the same automatic plot range:

Use individual plot ranges on all axes:

Specify a global plot range:

Specify the plot range selectively to each axis using rule replacement:

PlotRangePadding  (4)

Padding is chosen automatically by default:

No plot range padding:

Add absolute plot range padding:

Specify scaled plot range padding:

PlotStyle  (1)

Specify styles for each line:

Applications  (1)

RadialAxisPlot is naturally great at visualizing sports stats. For example, visualize the performance of the NBA players for the whole 20182019 season:

Filter out players who did not play very much:

For example:

Pick the following five stats to visualize:

Find the mean values of these five stats:

Use Manipulate to create an interface to toggle through each player and use RadialAxisPlot to visualize their performance compared to the averages:

Properties & Relations  (4)

RadialAxisPlot plots multidimensional points on multiple radial axes:

ListPolarPlot plots multiple points on a polar axis:

ParallelAxisPlot plots multidimensional points on multiple parallel axes:

RadialAxisPlot displays a single point using multiple axes:

AngularGauge plots multiple values on a single axis:

PieChart displays values as parts of a whole:

Neat Examples  (1)

Use RadialGradientFilling to create a highly stylized filling:

Wolfram Research (2020), RadialAxisPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/RadialAxisPlot.html.

Text

Wolfram Research (2020), RadialAxisPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/RadialAxisPlot.html.

CMS

Wolfram Language. 2020. "RadialAxisPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RadialAxisPlot.html.

APA

Wolfram Language. (2020). RadialAxisPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RadialAxisPlot.html

BibTeX

@misc{reference.wolfram_2022_radialaxisplot, author="Wolfram Research", title="{RadialAxisPlot}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/RadialAxisPlot.html}", note=[Accessed: 02-June-2023 ]}

BibLaTeX

@online{reference.wolfram_2022_radialaxisplot, organization={Wolfram Research}, title={RadialAxisPlot}, year={2020}, url={https://reference.wolfram.com/language/ref/RadialAxisPlot.html}, note=[Accessed: 02-June-2023 ]}