R-Graphics for Networks

With R you can make beautiful graphics and the nice thing is, you can design your own customized graphics. For some nice graphs produced with R, have a look at http://addictedtor.free.fr/graphiques/.
 
At the moment I am working on a parking model (searching for parking lots in the city) and have a simple grid for the streets and the junctions. If you start working with network models you have the problem that there is basic information for every node and on top of that you have for every node your results. Trying to interprete the results is hard. Either you have a huge excel sheet with lots of numbers for every node or you try to catch specific results in your model by filtering the output and looking at your model results listing.
 
R gives you the possibility to draw your network with all the information near the nodes. I first wrote all the numbers near the nodes with different colors, then I used arrows in different colors and different sizes. That was all nice, but still hard to read.
What I really wanted was to have something like a piechart or bars for every node directly plotted on the grid.
 
In R this is possible. You can use the x- and y-coordinates of your nodes and the drawing function polygon(). With some basic geometry (wihich I had to look up….) and ideas from Bálint Czúcz (http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=143) ,
I managed to write a R-script that takes the number of results per nodes (in my case 3, but you can have as many as you want), the grid size (in my case 5×5, but you can also use a real grid for a specific citiy). The script calculates the relative sizes of the results or basic information (for example number of old people, number of young people, number of adults = (0.3, 0.2,0.5)) and the relative size of the total (in node a we have the most people, in node b we have only 50%) and uses this information to draw scaled piecharts.
 
In the nex figure you see the results. You  now can easily see that in this case mose people live in the node with the coordinates (4,6) and that every group has about the same size.
 
 
Another way would be using bars:
 
 
Here is the most important of the code (pie chart)
 
 
 

Directory Opus: A great Windows Explorer replacement

I experimented with different replacements for the Windows Explorer. I tried several free replacements, but finally decided to buy Directory Opus (“Opus”). It can be found at http://www.gpsoft.com.au/index.html. It costs about 90 US Dollar. It has a manual of over 700 pages, so you can probably imagine that it will have many features. I have been using Opus for several years now, but never took the time of configuring it properly for my needs. Yesterday I discovered a nice article by Andy  (http://www.asiteaboutnothing.net/c_dopus.html) who shows how to make Opus more user-friendly. It is a great article and I implemented almost all his ideas.
 
Here is a screenshot of my normal Opus view with some of its features highlighed
 
dopus1.png (800x676 pixels)
 
There are several display modes possible (Windows Explorer Style, Dual Horizontal (my favorite), Dual Vertical, Commander, etc.).
One of the “killer” features of Opus is the possibility of using tabs. I have my most often used folders as tabs (see callout in the figure). I now can easily jump to these folders. Another nice feature is the grouped listing of files (lower pane) . You can adjust the background colors (the orignal background color is white). More features are the possibility of defining your own menubars, macros and easy filtering.
 
A nice feature is the flat view. In this view all the files in a directory and its subdirectories are listed. The next figure shows the flat view in which I filtered for all the files with the extension “gms”. I often use the flat view to clean up a directory by grouping all the files according to their extension and then sorting them according to their svn status.
.
 
As you can see, I added a colum svn-status, so I can see if I have to commit my files (TortoiseSVN, the shell extension for Subversion nicely integrates with Opus: You can see the status also by looking at the file icons). I use the colums SVN Status for sorting according status. In one of the usergroup posts (http://resource.dopus.com/viewtopic.php?f=18&t=13293&p=68105&hilit=button+svn#p68105), is a post with how to add buttons in the menu bar with subversion commands (see first figure for the buttons). This allows me one click to commit, update or check the status of a file or directory (all subversion commands can be found by using right click too).
 
You can download a trial version for 60 days. There is a 32 and 64bit Version. Unfortunately, I don’t earny a penny if you buy Opus…