### Bar charts in polar coordinates using R package ggplot2

R code providing both an ordinary bar plot and a plot based on polar coordinates.

library(RColorBrewer)
library(ggplot2)
Geography = c(rep('Ukraine in general',3),rep('South-Eastern Ukraine',3),rep('Lower-Southern Ukraine',3),rep('Central Ukraine/Kiev',3),rep('Western Ukraine',3))

Answer = rep(c("Ukraine and Russia must unite into a single state", "Ukraine and Russia must be independent, but friendly states - with open borders, without visas and customs houses","Relations should be the same as with other states - with closed borders, visas and customs houses"))

numbers = c(12.5,68,14.7,25.8,72.2,2,19.4,63.8,10.5,5.4,69.7,20.9,0.7,66.7,24)

#install.packages("extrafont")
library(extrafont)

ggplot(df, aes(x = Geography)) + geom_bar(aes(weight=numbers, fill = Answer), position = 'fill') + scale_y_continuous("", breaks=NULL) + scale_fill_manual(values = rev(brewer.pal(6, "Oranges"))) + ggtitle("What would you like to the relationship between Ukraine and Russia look like? \n Source: KIIS and DIF feb. 2014, n=2023 (NA 4.7 pct)")+theme(legend.position="bottom",legend.direction="vertical",plot.title=element_text(family="", face="bold", size=14),text=element_text(family="Times", face="bold", size=10),legend.title=element_blank())

#plot the stacked bar plot with polar coordinate
ggplot(df, aes(x = Geography)) + geom_bar(aes(weight=numbers, fill = Answer), position = 'fill') + scale_y_continuous("", breaks=NULL) + scale_fill_manual(values = rev(brewer.pal(6, "Blues"))) + ggtitle("What would you like to the relationship between Ukraine and Russia look like? \n Source: KIIS and DIF feb. 2014, n=2023 (NA 4.7 pct)")+coord_polar()+theme(legend.position="bottom",legend.direction="vertical",plot.title=element_text(family="", face="bold", size=14),text=element_text(family="Times", face="bold", size=10),legend.title=element_blank())

### HackRF on Windows 8

This technical note is based on an extract from thread. I have made several changes and added recommendations. I have experienced lot of latency using GnuRadio and HackRF on Pentoo Linux, so I wanted to try out GnuRadio on Windows.

HackRF One is a transceiver, so besides SDR capabilities, it can also transmit signals, inkluding sweeping a given range, uniform and Gaussian signals. Pentoo Linux provides the most direct access to HackRF and toolboxes. Install Pentoo Linux on a separate drive, then you can use osmocom_siggen from a terminal to transmit signals such as near-field GSM bursts, which will only be detectable within a meter.

- MinGW Setup (Go to the Installer directory and download setup file)
- CMake (I am using CMake 3.2.2 and I installed it in C:\CMake, this path is important in the commands we must send in the MinGW shell)

### Example: Beeswarm plot in R

library(foreign)

names(data)

install.packages('beeswarm')

library(beeswarm)

levels(data\$group)

png(file="C:/Users/hellmund/Documents/il6.png", bg="transparent")

beeswarm(data\$il6~data\$group,data=data, method=c("swarm"),pch=16,pwcol=data\$Gender,xlab='',ylab='il6',ylim=c(0,20))

legend('topright',legend=levels(data\$Gender),title='Gender',pch=16,col=2:1)

boxplot(data\$il6~data\$group, data=data, add = T, names = c("","",""), col="#0000ff22")

dev.off()

### Example: Business cards typeset with LaTeX

So you enjoy the quality of a professional typesetting system? You got Avery labels, a working MikTeX and the ticket package installed...
You might find some assistance from a half criminal paranoid zealot system administrator, willing to guide you through a dinosaur kingdom of TeX ... but that kind of assistance might also just leave you with nothing.

It was easy to get the layout of the labels with the option zw32010, but how about page margins? I tried to set things straight with the layouts package (\usepackage{layouts}\currentpage \pagedesign), but then there was still some unwanted white space and margins...

To make things less complicated I decided to make a single card. The solution is a hack because it needs customization (with voffset and hoffset as you see n the TeX code below) but the adjustment is more straightforward, especially if you use the boxed option with ticket.

The card was converted to png with Ghostscript and I could easily print the business cards with Averys …