holtzy / data_to_viz Goto Github PK
View Code? Open in Web Editor NEWLeading to the dataviz you need
Home Page: https://www.data-to-viz.com/
License: MIT License
Leading to the dataviz you need
Home Page: https://www.data-to-viz.com/
License: MIT License
Hi Yan, nice meeting you here! I just recently begin my data analysis journey as a recent graduate and thinking about building my own portfolio website.
The project section from your site is definitely what I am looking to add to my site. I am not sure if I can reuse some of your code, so I am here to ask for your consent.
If you have time by any chance would you mind letting me know your decision? Thanks
Hello,
I would like to help the project adding a section of Python examples. Is it possible or should I fork?
In the page
https://www.data-to-viz.com/graph/histogram.html
in the "common mistakes" section where the barplot hyperlink in the third bullet point goes back to the histogram page ironically unless that is purposeful.
It should be going to https://www.data-to-viz.com/graph/barplot.html
Provided a picture below
The following Rmd files do not match their corresponding html files. They appear to have been overwritten with an unfinished file about histograms.
caveat/connect_your_dot.Rmd
caveat/rainbow.Rmd
caveat/small_multiple.Rmd
Hey, first of all, love you website. I always use as a reference. I recommend it to everyone who do data viz. So in the data- to - viz section, the popup scroll down is not working. https://www.data-to-viz.com/#circularpacking
Great website consolidating web charting libraries and examples of it.
However, the licensing information is also important.
I believe d3js is BSD license, however, R falls under GPL license.
As for the example codes, a lot of them includes additionally third party libraries which may fall under yet another licensing.
In the header, it is written a few analytics idea by ... --> does not work
Please add a LICENSE file to define terms of use. Thanks!
Nice site!
When clicking on acknowledgement or so at the bottom I get a grey cover on the screen and cannot click on e.g the book links.
I need to develop a process that would allow to quickly add some examples to each chart page.
I should just have to update a js object and add a screenshot to make it update. Hard since everrything is done in R Markdown.. 🤔
Thank you for data to viz website. I am learning Sankey diagram. On this web page : https://www.data-to-viz.com/graph/sankey.html , how can I add title to the first plot? I want to use R as done in this web page. Thanks a lot in advance.
regarding: cut_y_axis.Rmd
I took out the "bla" at around line 51--not sure if that was intentional or not. Seems like the Tufte quote could use a chart too?
Also, the "Read more" section to does not really relate to the issue be discussed?
regarding: consistency.Rmd
In the main page, when clicking on a chart type, modal content is not scrollable (due to pointer-events: none
), so text is truncated.
.modal-dialog {
pointer-events: all;
}
or
.portfolio-modal .modal-dialog {
max-height: unset;
}
TidyR -> tidyr for instance
To close a popup panel, you need to click on a big cross. The issue is, you need to click exactly on black pixels, which are very few. Miss them — and you are redirected to some page, or at best, nothing happens.
The link in the treemap page (https://www.r-graph-gallery.com/treemap.html) linking to data-to-viz.com directs users to area charts (https://www.data-to-viz.com/graph/area.html) not the treemap page (https://www.data-to-viz.com/graph/treemap.html).
Fix:
Change data-to-viz.com link in the opening paragraph from:
https://www.data-to-viz.com/graph/area.html
to:
https://www.data-to-viz.com/graph/treemap.html
(btw - fantastic resource!)
If you'd prefer a separate github issue for each one, let me know and I'll split them up.
When on the homepage, following 3 types of numeric, the bottom one, with the annotation "3D scatter or surface" doesn't have a link associated with it, and no pop-up appears when clicking it.
The following don't show a pop-up, while they do have working links (not an exhaustive list I assume, just the ones I found):
https://www.data-to-viz.com/#pca
https://www.data-to-viz.com/#groupedbarplot
https://www.data-to-viz.com/#stackedbar
https://www.data-to-viz.com/#waffle
In num&cat -> several cat, one num -> nested -> one obs per group, sunburst is mistakenly written as sunburt
Hope this helps, great project!
Under R packages on the about page:
Remove/fix the link to http://www.ggplot2-exts.org/gallery/
I don't recommend clicking it.
You need to strongly consider adding a category for cross-classified frequency tables, often most usefully displayed in mosaic plots, marimekko charts etc.
library(vcd)
data(HairEyeColor)
mosaic(~Hair + Eye, data=HairEyeColor, shade=TRUE)
I'd love to know if you have any recommendations for getting deeper into this, like books, courses, etc... Do you have anything like that, or recommendations of outside resources? I think they would be a great addition to the project.
I mean at the top near "Leading to the dataviz you need "
Some mistake in the boxplot blogpost. See christophe email.
Suggested by Cédric Scherer
library(tidyverse)
library(hrbrthemes) ## not needed
library(viridis) ## not needed
library(patchwork)
data1 <- data.frame( name=letters[1:5], value=c(17,18,20,22,24) )
data2 <- data.frame( name=letters[1:5], value=c(20,18,21,20,20) )
data3 <- data.frame( name=letters[1:5], value=c(24,23,21,19,18) )
plot_pie <- function(data, vec){
ggplot(data, aes(x="name", y=value, fill=name)) +
geom_bar(width = 1, stat = "identity") + ## why not geom_col?
coord_polar("y", start=0, direction = -1) +
scale_fill_viridis(discrete = TRUE, direction=-1) + ## ggplto2 has its own viridis scale
geom_text(aes(y = vec, label = rev(name), size=4, color=c( "white", rep("black", 4)))) + ## sizeand color should NOT be listed inside aes(). Plus, colors could be handled dynamically
scale_color_manual(values=c("black", "white")) + ## not used at all
theme_ipsum() + ## just use theme_void?
theme(
legend.position="none",
plot.title = element_text(size=14),
panel.grid = element_blank(),
axis.text = element_blank(),
legend.margin=unit(0, "null")
) +
xlab("") + ## not needed in combination with theme_void(), and if better use xlab(NULL)
ylab("") ## not needed in combination with theme_void(), and if better use ylab(NULL)
}
a <- plot_pie(data1, c(10,35,55,75,93))
b <- plot_pie(data2, c(10,35,53,75,93))
c <- plot_pie(data3, c(10,29,50,75,93))
a + b + c
library(tidyverse)
library(patchwork)
data1 <- data.frame( name = letters[1:5], value = c(17,18,20,22,24) )
data2 <- data.frame( name = letters[1:5], value = c(20,18,21,20,20) )
data3 <- data.frame( name = letters[1:5], value = c(24,23,21,19,18) )
plot_pie <- function(data, vec){
n <- nrow(data)
ggplot(data, aes(x = "name", y = value, fill = name)) +
geom_col(width = 1) +
geom_text(
aes(y = vec, label = rev(name)),
## dynamic mapping of colors depending on position -> fill of slice
color = c(rep("black", floor(n / 2)), rep("white", ceiling(n / 2))),
size = 8, fontface = "bold"
) +
coord_polar("y", start = 0, direction = -1) +
scale_fill_viridis_d(end = .9, guide = "none") +
theme_void()
}
a <- plot_pie(data1, c(10,36,56,75,93)) ## adjust label positions
b <- plot_pie(data2, c(9,31,51,71,90)) ## adjust label positions
c <- plot_pie(data3, c(8,28,48,70,93)) ## adjust label positions
a + b + c
Hey, I have been browsing your cool website, but this page crashes in Firefox (consistently):
https://www.data-to-viz.com/caveat/overplotting.html
It might be those huge embedded images that cause this. It works fine in Chrome, though.
I am using Firefox 60 on Linux Mint.
Edit:
I suddenly see that there is also a cool interactive 3D plot in there. Might be the issue as well, since other pages work fine. Maybe disable that one by default (if it really is the issue), and load in on demand? So that the content is also visible for those that do not think of using another browser.
The basic tooltip and the the one with html are not working.
This might be related to this js error spotted in the console:
Uncaught TypeError: Cannot read property 'top' of undefined
at o (agency.min.js:1)
https://www.d3-graph-gallery.com/graph/interactivity_tooltip.html
Cheers,
The basic tooltip and the the one with html are not working.
This might be related to this js error spotted in the console:
Uncaught TypeError: Cannot read property 'top' of undefined
at o (agency.min.js:1)
https://www.d3-graph-gallery.com/graph/interactivity_tooltip.html
Cheers,
This isn't really a GitHub issue, but 1) I just want to say how incredible this site is, and how useful it will be for me in my own work, and for some lectures I give on visual display; and 2) there are quite a few minor and unimportant grammatical errors in English--if there was any reason to fix these, I would be happy to assist, if there was some convenient file I could edit and send back to you?
I was trying to make the time-serie graph reported on the site:
https://r-graph-gallery.com/318-custom-dygraphs-time-series-example.html
Which loads the following dataframe:
https://python-graph-gallery.com/wp-content/uploads/bike.csv
But I realized the dataframe bike.csv is not longer present in your site. Is it possible to restore or provide an alternative link?
The popup page for pca doesn't appear - a broken link or issue with the popup window?
Epic site!!! Thanks!!!
On this page :
https://www.data-to-viz.com/caveat/circular_bar_yaxis.html
at the line 394 :
https://github.com/holtzy/data_to_viz/blob/master/caveat/circular_bar_yaxis.html
The a href link is local.
Change it to http link.
<a href="http://www.data etc...
I think that any numerical variable has an ordering, otherwise it would be hard to map it to an axis anyway. If a numerical variable has no meaningful ordering, it's more like a categorical variable. I don't know what would be the correct term though. The graphs shown with 'ordered' variables are primarily used with an x-axis that corresponds with time, so perhaps that's a better name for them?
Hello bro.
I was checking out your website to see if I can include some of the metrics into some of my works.
I found this little thing here. I'll put a gif to explain the stuff.
Because sometimes a GIF is worth a thousand words. :p
If I find the time I'll try and dig
https://github.com/holtzy/data_to_viz/blob/master/story/OneNumOneCat.html#L50
It's this URL here that loops into the same folder rather than returning to the index.
On my iPad the top menu remains in desktop mode so all titles are overlapping. Will have to check if my browser is not out of date, but double check. Since conference people may have iPads, it may be worth fixing before release.
++
Hello,
The scrollbar in a popup is not draggable. If you try to drag the scrollbar by clicking and holding a mouse button, the popup doesn't scroll. On release of the mouse button the popup closes.
Scrolling the popup by using the mousewheel does work.
Tested on Chrome 67.0.3396.99 on Ubuntu 17.10
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.