ezgraphs / r-programs Goto Github PK
View Code? Open in Web Editor NEWA Variety of R Programs
Home Page: www.r-chart.com
A Variety of R Programs
Home Page: www.r-chart.com
Dear Ezgraphs,
I would like very interesting your example about radar grpahs, I want to create a radar graph with the data of my own Csv but doesn't work. Maybe I don't know as much as you in R that could be the reason.
I appreciate your collaboration in help me to solve why my code doesnt work.
kind regards
That's my code:
``library(dplyr)
library(ggplot2)
library(scales)
library(reshape2)
library(tibble)
file="C:...../Desktop/pa.csv"
df <- read.csv(file, header=TRUE, sep=",") %>%
rownames_to_column( var = "country" ) %>% # tibble
head(country)
mutate_each(funs(rescale), -country) %>% # scales
melt(id.vars=c('country'), measure.vars=colnames(file)) %>%
arrange(country)
df %>%
ggplot(aes(x=country, y=value, group=variable, color=variable)) +
geom_polygon(fill=NA) +
coord_polar() + theme_bw() + facet_wrap(~ variable) +
#scale_x_discrete(labels = abbreviate) + # Can increase the text size and uncomment
theme(axis.text.x = element_text(size = 3))
``
and the CSV:
var1, var2, var3, var4, var5, var6
c1,1,3,3,3,2
c2,2,4,3,4,4
c3,5,5,3,3,5
c4,4,4,2,3,3
c5,4,4,3,4,5
c6,5,5,3,2,5
c7,5,5,4,5,5
c8,5,5,4,4,5
c9,4,4,2,3,3
c10,4,3,2,2,2
c11,5,4,3,5,5
c12,4,4,3,3,3
c13,3,2,3,3,1
c14,3,2,2,3,4
I tired to run the mandlebrot R code. And discovered that opts is deprecated. Please rewrite the code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.