Giter VIP home page Giter VIP logo

Comments (7)

agricolamz avatar agricolamz commented on June 14, 2024

Works fine for me. Is it the same with all kinds of fomats (e. g. .jpeg)? Is it possible "Copy to clipboard..."?

from lingtypology.

IndianaTones avatar IndianaTones commented on June 14, 2024

Yes, it is with all kinds of formats. I can Copy to clipboard but the resolution isn't great.

from lingtypology.

agricolamz avatar agricolamz commented on June 14, 2024

And what kind of operation system do you have?

from lingtypology.

agricolamz avatar agricolamz commented on June 14, 2024

Actually I confused, could you describe how exactly you have tried to save it?

from lingtypology.

IndianaTones avatar IndianaTones commented on June 14, 2024

OS: Windows 10 Pro
R-Studio Version 1.2.1335
Code:
png(filename="mymap.png", width=3.5, height=5, units="in", res=300)
dev.off()
Result (blank page):
mymap

from lingtypology.

agricolamz avatar agricolamz commented on June 14, 2024

Oh, I get it. But then it is not a problem of lingtypology, but the known problem of leaflet. As I wrote in the manual:

If for some reasons you are not using RStudio or you want to automatically create and save a lot of maps, you can save a map to a variable and use the htmlwidgets package for saving created maps to an .html file. I would like to thank Timo Roettger for mentioning this problem.

m <- map.feature(c("Adyghe", "Korean"))
# install.packages("htmlwidgets")
library(htmlwidgets)
saveWidget(m, file="TYPE_FILE_PATH/m.html")

There is an export button in RStudio, but for some reason it is not so easy to save a map as a .png or.jpg file using code. Here is a possible solution.

from lingtypology.

IndianaTones avatar IndianaTones commented on June 14, 2024

Yes, I saw that, but was hoping to get around it. Ok, so thank you though!!

from lingtypology.

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.