>> On 12/08/2011 03:45 AM, Xavier Fernández i Marín wrote: >> > Hello, >> > >> > Although I have used a general search engine, r-seek, and browsed >> > CRAN for contributed packages and R Gallery, I have not been able >> > to find an implementation of Hinton Diagrams for representing >> > weighting matrices using R. >> > >> > Does anyone knows a way of plotting weighting matrices in R? >> > >> Hi Xavier, >> The Hinton diagram looks fairly close to an image plot, or the >> color2D.matplot function. The difference is that the area of the squares >> in the Hinton plot are proportional to some value rather than the color, >> which indicates the sign of the value. If you have no luck finding this, >> I think I could easily morph color2D.matplot into a Hinton diagram >> function. > > Just for future reference and searches, the Hinton diagram has been > implemented in the color2D.matplot function of the plotrix package. > > Thank you Jim.
There is a great new book called 'Principles of Computational Modelling in Neuroscience' which has some examples in R; in particular in chapter 10 you will find code for 'Hinton plots' (also known as Willshaw Plots). http://www.compneuroprinciples.org/code-examples/10 Stephen ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.