GithubHelp home page GithubHelp logo

width and height - unit? about cmplot HOT 4 CLOSED

yinlilin avatar yinlilin commented on July 17, 2024
width and height - unit?

from cmplot.

Comments (4)

YinLiLin avatar YinLiLin commented on July 17, 2024

the default width and height are 14 and 6 respectively, please refer to

CMplot/R/CMplot.r

Line 1412 in d253dbf

ht=ifelse(is.null(height), 6, height)

from cmplot.

sariya avatar sariya commented on July 17, 2024

Thank you. What is the unit: pixels, cm, mm?

from cmplot.

hatre0 avatar hatre0 commented on July 17, 2024

Is there any way to specify dimensions (cm) and dpi?

I can see in the code that dimensions are automatically calculated in (I assume) pixels based on dpi
if(file=="jpg") jpeg(paste("Rectangular-Manhattan.",taxa[i],".jpg",sep=""), width = whdpi,height=htdpi,res=dpi,quality = 100

Does this imply the base unit for the width and height cmplot parameters is inches (R default)?

from cmplot.

YinLiLin avatar YinLiLin commented on July 17, 2024

yes, it's the same with the R default, in the main function of CMplot, the relevant parameters "height" and "width" can be used to resize the dimension, and the parameter "dpi" controls the resolution.

from cmplot.

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.