betahas.blogg.se

Using artcam with x-carve
Using artcam with x-carve







using artcam with x-carve using artcam with x-carve

In order to create this chart, you first need to import the XKCD font, install it on your machine and load it into R using the extrafont package. Below is an example of a theme Mauricio was able to create which mimics the visual style of XKCD. ggplot2 allows for a very high degree of customisation, including allowing you to use imported fonts. Of course, you may want to create your own themes as well. P4 <- ggplot () + theme_bw () + geom_bar ( aes ( y = percentage, x = year, fill = product ), data = charts.data, stat = "identity" ) + geom_text ( data = charts.data, aes ( x = year, y = pos, label = paste0 ( percentage, "%" )), size = 4 ) + theme ( legend.position = "bottom", legend.direction = "horizontal", legend.title = element_blank ()) + scale_x_continuous ( breaks = seq ( 2006, 2014, 1 )) + scale_y_continuous ( labels = dollar_format ( suffix = "%", prefix = "" )) + labs ( x = "Year", y = "Percentage" ) + ggtitle ( "Composition of Exports to China (%)" ) p4









Using artcam with x-carve