2) Plotting a Neural Network.

This Blog entry is from the Neural Networks section in Learn R.

It is often stated that a neural network is an unexplainable modelling techniques, which practically holds some truth, but to those with a background in regression modelling, explaining the model is not insurmountable.

The neuralnet object that was created in the previous Blog entry, allows for the plotting of the neural network using the base plot() function.  Simply call plot() passing the neural network object as an argument:

plot(NeuralNetworkFourByOne)
1.png

Run the line of script to console:

2.png

A plot is created of the neural network bearing stark resemblance to conceptual models put forward in this training manual,  and in a model of less complexity, is in fact explainable and quite reproducible on a manual basis:

3.png

As the model becomes more and more complex,  with the addition of more and more features, layers and processing elements, the neural network will naturally become less and less explainable.

6) Navigate Plots and Export Visualisations.

This Blog entry is from the Summary Statistics Plots section in Learn R.

Upon the creation of a box plot at first glance it may appear as if the Histogram created as one of the first Blog entries in this section has been overwritten.  Upon closer inspection, it can be seen that this is not the case as there is a back arrow, function, that allows for the paging through plots created:

1.png

Clicking on the back arrow will return to the Histogram created beforehand:

2.png

Conversely the forward arrow returns to the newly created Box Plot.  RStudio provide a number of mechanisms to export the visualisation via the Export button, clicking on it presents the options:

3.png

In the drop-down there are several options to export an image from a plot, although the most versatile is to copy the visualisation to clipboard as an image for pasting into a plethora of third party applications, such as Word, via the established Copy \ Paste mechanism familiar to Windows users. 

To copy the image, click on the sub menu item Copy to Clipboard which will open a dialog box setting out the specification of the image:

4.png

Options for the creation of the image include the dimensions of the image and the precise format \ encoding, in this case the defaults are adequate as a bitmap is a suitably versatile format.  Click the Copy Plot button to copy the image to the clipboard.  The image can now be pasted into any application that can make use of a bitmap, such as Powerpoint, Word, Excel of Paint:

5.png