Coder Social home page Coder Social logo

Multi-Arcs about carnegie-hall-app HOT 21 CLOSED

kpivert avatar kpivert commented on August 24, 2024 1
Multi-Arcs

from carnegie-hall-app.

Comments (21)

nathancday avatar nathancday commented on August 24, 2024 1

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.

nathancday avatar nathancday commented on August 24, 2024

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.

kpivert avatar kpivert commented on August 24, 2024

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.

kpivert avatar kpivert commented on August 24, 2024

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. image


from carnegie-hall-app.

nathancday avatar nathancday commented on August 24, 2024

nice! it that mapbox?

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

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.

nathancday avatar nathancday commented on August 24, 2024

I've never heard of diagram before, looks cool tho

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

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.

kpivert avatar kpivert commented on August 24, 2024

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

image

from carnegie-hall-app.

nathancday avatar nathancday commented on August 24, 2024

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

@nathancday, quick update. I think I've found a workaround for leaflet and the dateline issue.
image 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.

nathancday avatar nathancday commented on August 24, 2024

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

from carnegie-hall-app.

nathancday avatar nathancday commented on August 24, 2024

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

Happy hour on Monday it is. Just name the time and place and I'll meet you there.

from carnegie-hall-app.

nathancday avatar nathancday commented on August 24, 2024

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

Done.

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

Done. Looking forward to it. Still working on this, but here's an implementation with googleway.
image

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

Sigh. But the Europe map is still a cluster. Will stop posting until tomorrow.
image

from carnegie-hall-app.

kpivert avatar kpivert commented on August 24, 2024

@nathancday, thanks for meeting yesterday.
To follow-up:

  • Choropleth Map—Kurtis
  • Join 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.

kpivert avatar kpivert commented on August 24, 2024

No longer relevant. Closes #13

from carnegie-hall-app.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.