GithubHelp home page GithubHelp logo

Comments (10)

nmpeterson avatar nmpeterson commented on June 7, 2024

Just a note: everything should be exported in SVG format for Comms, as that is easiest for them to edit in Illustrator.

from cmapplot.

matthewstern avatar matthewstern commented on June 7, 2024

do we want the ability to export in jpg and pdf as well, for more immediate uses that don't involve further tweaking by comms?

from cmapplot.

nmpeterson avatar nmpeterson commented on June 7, 2024

I imagine this would be useful, although PNG (or GIF) should be used instead of JPG, which is good for photos but not graphics. I think an output_format parameter for the function, with a default of "svg" would be a good way to implement this, so that if not explicitly specified then an SVG will be exported.

from cmapplot.

matthewstern avatar matthewstern commented on June 7, 2024

Once we get the font situation figured out, it would be cool if this function issued a warning if the correct fonts were not being used.

from cmapplot.

matthewstern avatar matthewstern commented on June 7, 2024

@sarahcmap, not sure this was 100% clear from our meeting yesterday: In terms of final chart layout, our direction at this point is to combine the "designer guidelines" from the link in the first post of this issue with a graphic from a recent policy update, for example here. The current model has the title, source, and note on the left and the legend above. Nancy will supposedly be updating the designer guidelines soon with the new design, but if that doesn't come down the pipe soon it's probably worth going to chat with her.

Also, where do we want to go with the larger question of what goes in theme_cmap and what goes in finalize_plot? It seems like some aspects are really clearly in this project (e.g. file format, dimensions, etc) but things like font size, legend placement, etc are maybe undetermined at this point. Might be worth sitting down with @MMenninger before going too deep?

from cmapplot.

sarahcmap avatar sarahcmap commented on June 7, 2024

Thanks for the additional details Matt - I'm still just getting started but I'll touch base with Martin/Nancy as needed!

from cmapplot.

nmpeterson avatar nmpeterson commented on June 7, 2024

Be forewarned that if we add a PDF-exporting option, we will probably run into issues with the fonts. See this StackOverflow Q&A for more info.

from cmapplot.

matthewstern avatar matthewstern commented on June 7, 2024
  • Width of sidebar as argument – percentage?
  • Auto-breaking title and note/source text (in progress)
  • Space between title and subtitle/note
  • Letting of title and note/source text (see details from Nancy in post below)
  • Strong (2 point) horizontal line across top (in progress)
  • note: this line seems thicker than 2 points...setting to 3 for now (can research units more)
  • Four output options (based on best practices document):
    • Default = Indesign (note: font sizes inherited from theme)
    • Web = Web
    • Report = Word
    • Presentation = Powerpoint
  • Multiple output modes:
    • View in R (use Window function so width is specified?)
    • SVG
    • PNG
    • PDF (note font challenges, see Noel's comment above)

from cmapplot.

matthewstern avatar matthewstern commented on June 7, 2024

Specs from Nancy:

graph area

  • Space for graph title/note/source: 2.1503 in --> 154.8 px/23.3% of plot area. setting to 23% (adjustable) with width=670.
  • Space between the title and graph: 0.16 in --> 11.5px/1.7% of plot area. setting to 2% (not adjustable for now) with width=670.
  • Graph: 6.921 in --> 664 px/75% of plot area. setting based on graph title/note/source pct

other

  • line on top of title/graph: .0277 in --> this is about right with line weight of 3 at y=0.92
  • leading for Title: 19pt --> this is slightly less than the default leading for 17pt font (according to Adobe illustrator). set to appropriate ratio = 0.93. the lineheight argument in gpar seems to consider lineheight of 1 as being the lineheight with the default leading (so it will be larger than the actual font size)
  • leading for Note/Source: 13.2pt --> this is the default leading for 11pt font (according to Adobe Illustrator)

from cmapplot.

matthewstern avatar matthewstern commented on June 7, 2024

some links on grob management for safe keeping:

from cmapplot.

Related Issues (20)

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.