Some Special Plots

As discussed in "The Structure of Graphics and Sound", the Wolfram Language includes a full graphics programming language. In this language, you can set up many different kinds of plots.

Some special plotting functions.

Here is an exponential function:

f[x_]:=Exp[-x]+4 Exp[-2x]

This generates linear-log and log-linear plots of the function:

{LogPlot[f[x],{x,1,6}],LogLinearPlot[f[x],{x,1,6}]}

This gathers some financial time series data:

fd=FinancialData["GE",{{1980},{2005}}];

This plots the financial data on linear and logarithmic scales:

{DateListPlot[fd],DateListLogPlot[fd]}

This uses (RefLink[RevolutionPlot3D, paclet:ref/RevolutionPlot3D]) to revolve a curve around the x and z axes:

{RevolutionPlot3D[(t^4)-(t^2),{t,0,1},RevolutionAxis->"X"],RevolutionPlot3D[(t^4)-(t^2),{t,0,1},RevolutionAxis->"Z"]}

Here is a list of the first 10 primes:

p=Table[Prime[n],{n,10}]

Here is a bar chart of the primes:

BarChart[p]

This gives a pie chart:

PieChart[p,ChartLabels->Range[10]]

Some of the plotting functions available are defined in the Standard Extra Packages included with the Wolfram System.

Some of the plotting functions in the Wolfram System standard extra packages.

(PackageLink[ErrorListPlot, paclet:ErrorBarPlots/ref/ErrorListPlot, ErrorBarPlots Package Symbol]) is available in the Error Bar Plotting Package:

Needs["ErrorBarPlots`"]

This plots a dataset with its associated errors:

ErrorListPlot[Table[{i,RandomReal[0.5]}, {i, 10}]]

(PackageLink[BoxWhiskerPlot, paclet:StatisticalPlots/ref/BoxWhiskerPlot, StatisticalPlots Package Symbol]), (PackageLink[ParetoPlot, paclet:StatisticalPlots/ref/ParetoPlot, StatisticalPlots Package Symbol]), and (PackageLink[PairwiseScatterPlot, paclet:StatisticalPlots/ref/PairwiseScatterPlot, StatisticalPlots Package Symbol]) are available in the Statistical Plots Package:

Needs["StatisticalPlots`"]

This generates a box-and-whisker plot for samples from a normal distribution:

BoxWhiskerPlot[RandomReal[NormalDistribution[0,1],{100,6}]]

Here is a random dataset consisting of the letters a through f:

data=RandomChoice[CharacterRange["a","f"],{25}];

This creates a Pareto plot of the dataset:

ParetoPlot[data]

(PackageLink[PairwiseScatterPlot, paclet:StatisticalPlots/ref/PairwiseScatterPlot, StatisticalPlots Package Symbol]) can be used to plot pairs of columns from trivariate data:

PairwiseScatterPlot[Table[{x,Sin[x],Cos[x]},{x,0,2 Pi,0.1}],DataTicks->True]