Graph your fav pic using R
Shekhar Pandey
Tech Lead | Digital Transformation, Robotics Process Automation, Machine Learning, Artificial Intelligence, AIOps, DevOps, Cloud Computing
Just a couple of lines of code to graph your favourite pic using R
Prerequisites :
- Convert your fav pic to SVG format (https://pngtosvg.com/)
- Convert SVG format file to data coordinates file (https://spotify.github.io/coordinator/)
########## Loading Packages in R ########## library(data.table) library(ggplot2) ########## Import Coordinates Data file ########## # reading coordinator.csv file generated in step 2 above df <- fread(‘coordinator.csv’) ########## Plotting the Data ########## p <- ggplot(df, aes(x=x, y=y)) + geom_point(color = “#BF0000”) + theme_void() p <-p + scale_y_reverse() p
And I have graphed my fav. pic as
I really find this awesome doing it in R .