Comments (21)
sounds good, I'll take a look at the arc mapping tooo, keep me posted on where you're at. I'll set up the palettes to gg-default for now. Feel free to start adding stuff to a CSS file, like any colors or fonts that are CH aesthetic 💅
from carnegie-hall-app.
What thinking about this in terms of syncing color palette across map-selector, map-output, and bubble plots. Maybe just use the ggplot2
default colors everywhere?
from carnegie-hall-app.
Great question. Could we use them for right now? I pulled the pantone for CH red, which I'd like to incorporate in accents, and it would be great to build out a palette that includes that, but I know I'm getting waaaay ahead of myself right now. Working on an alternate mapping approach to resolve the dateline issue. Fingers crossed.
from carnegie-hall-app.
OK, so this is a quick fix that works stolen from SO. Downside, no leaflet, but it works. Ignore the aesthetics, from suggested solution only.
from carnegie-hall-app.
nice! it that mapbox?
from carnegie-hall-app.
It's maps and diagram. Here's the code:
dat <- read_feather(here::here("data", "geolocated_performers.feather"))
dat <- dat %>%
mutate(ch_lat = rep(40.764881, nrow(dat))) %>%
mutate(ch_lon = rep(-73.980276, nrow(dat)))
oceania <- dat %>% filter(region == "Australia")
maps::map("world", fill = T, col = "grey8", bg = "grey15")
points(oceania$lon, oceania$lat, pch=3, cex=0.1, col="chocolate1")
for (i in (1:dim(oceania)[1])) {
diagram::curvedarrow(c(oceania$ch_lon[i], oceania$ch_lat[i]),
c(oceania$lon[i], oceania$lat[i]), curve=.1, lwd = .5,
lcol = "turquoise2", arr.length = 0)
}
from carnegie-hall-app.
I've never heard of diagram
before, looks cool tho
from carnegie-hall-app.
Me neither. I don't think that it's really a native GIS application (I'm pretty sure it isn't) but it beats (under a time crunch) futzing with a javascript library call. Even after I clean things up with aesthetics, it's not an elegant solution, but it works.
from carnegie-hall-app.
Nate, this looks fantastic, but for some reason I'm having an issue on my end that I haven't been able to resolve. When I run the app, I get the following error at line 117 in the server.R:
Warning: Error in pal: could not find function "pal". I added the missing tilde (see below), but that didn't fix it. I also added your colorFactor definition inside the renderLeafllet call but that also didn't resolve it. Any recommendation on where I should look next? I did test breakAtDateLine separately, and Russia is still causing a problem. I'm still working on that and will follow-up ASAP.
Thanks again.
Kurtis
from carnegie-hall-app.
from carnegie-hall-app.
@nathancday, quick update. I think I've found a workaround for leaflet and the dateline issue.
I still have some work to do with setting the frame, but I think it will work (eventually). I was also looking at googleway and mapbox, but I'm hoping to keep the native leaflet implementation, especially since it doesn't require an API key. Will follow-up with this, and updated datasets.
from carnegie-hall-app.
from carnegie-hall-app.
from carnegie-hall-app.
from carnegie-hall-app.
Happy hour on Monday it is. Just name the time and place and I'll meet you there.
from carnegie-hall-app.
from carnegie-hall-app.
Done.
from carnegie-hall-app.
Done. Looking forward to it. Still working on this, but here's an implementation with googleway.
from carnegie-hall-app.
Sigh. But the Europe map is still a cluster. Will stop posting until tomorrow.
from carnegie-hall-app.
@nathancday, thanks for meeting yesterday.
To follow-up:
Choropleth Map—KurtisJoin Role with geolocated_performer Data—Kurtis (and recode NA to "Instrumentalist")Request Full Query Results Beyond the 10,000 Throttle—Kurtis (for Role and Instruments)- Limit Bubble Labels to Certain Size of Bubble—Kurtis
Zoom Multi-Arcs to Birth Region/Continent—Nate- Click to Filter on Instrument—Nate
Pull DT Table POC Together—Kurtis
from carnegie-hall-app.
No longer relevant. Closes #13
from carnegie-hall-app.
Related Issues (14)
- use shiny::modalDialog() to show instructions
- Lealfet selector inspiration HOT 2
- Fix Missing Continent Info HOT 7
- Arcs vs chloropleth HOT 4
- arc not filtering
- migrate url clean up to R/ pre-process script HOT 1
- Remove feather dependencies HOT 1
- Interactify the treemaps and histogram HOT 1
- Sync color palettes across visuals
- Update README
- Another tab with filter by birthplace
- Exploration mode to showcase the diversity of performers
- Performer pictures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carnegie-hall-app.