Error In Postscript Unused Argument Units Px
bitmap files, high resolution PDF files with embedded fonts, SVG graphics and PostScript files. It also provides X11 and Windows interactive graphics devices. Unlike other devices it supports all graphics features including alpha blending, anti-aliasing etc. CairoX11, CairoPNG, CairoPDF, CairoPS and CairoSVG are convenience wrappers of Cairo that take the same arguments as the corresponding device it replaces such as X11, png, pdf, etc. Use of the Cairo function is encouraged as it is more flexible than the wrappers. Usage Cairo(width = 640, height = 480, file="", type="png", pointsize=12, bg = "transparent", canvas = "white", units = "px", dpi = http://7cjkco.rg.ro/U-2g "auto", ...) CairoX11(display=Sys.getenv("DISPLAY"), width = 7, height = 7, pointsize = 12, gamma = getOption("gamma"), bg = "transparent", canvas = "white", xpos = NA, ypos = NA, ...) CairoPNG(filename = "Rplot%03d.png", width = 480, height = 480, pointsize = 12, bg = "white", res = NA, ...) CairoJPEG(filename = "Rplot%03d.jpeg", width = 480, height = 480, pointsize = 12, quality = 75, bg = "white", res https://www.rforge.net/doc/packages/Cairo/Cairo.html = NA, ...) CairoTIFF(filename = "Rplot%03d.tiff", width = 480, height = 480, pointsize = 12, bg = "white", res = NA, ...) CairoPDF(file = ifelse(onefile, "Rplots.pdf","Rplot%03d.pdf"), width = 6, height = 6, onefile = TRUE, family = "Helvetica", title = "R Graphics Output", fonts = NULL, version = "1.1", paper = "special", encoding, bg, fg, pointsize, pagecentre) CairoSVG(file = ifelse(onefile, "Rplots.svg", "Rplot%03d.svg"), width = 6, height = 6, onefile = TRUE, bg = "transparent", pointsize = 12, ...) CairoWin(width = 7, height = 7, pointsize = 12, record = getOption("graphics.record"), rescale = c("R", "fit", "fixed"), xpinch, ypinch, bg = "transparent", canvas = "white", gamma = getOption("gamma"), xpos = NA, ypos = NA, buffered = getOption("windowsBuffered"), restoreConsole = FALSE, ...) CairoPS(file = ifelse(onefile, "Rplots.ps", "Rplot%03d.ps"), onefile = TRUE, family, title = "R Graphics Output", fonts = NULL, encoding, bg, fg, width, height, horizontal, pointsize, paper, pagecentre, print.it, command, colormodel) Arguments width width of the plot area (also see units). height height of the plot area (also see units). file name of the file to be created or connection to write to. Only PDF, PS and PNG types support connections. For X11 type file specifies the display
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/32042829/why-object-size-not-accepting-units-argument have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 error in million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why 'object.size' not accepting 'units' argument up vote -2 down vote favorite Apparently 'object.size' function accepting only one argument(i.e., object), but not 'units' or any other arguments. How can I tackle it? here is what happens if I error in postscript try it anyway: object.size(averageBySubAct, units = "Mb") Error in object.size(averageBySubAct, units = "Mb") : unused argument (units = "Mb") r built-in share|improve this question edited Aug 17 '15 at 4:35 Avinash Raj 126k84883 asked Aug 17 '15 at 4:33 Ganesh Birajdar 155 1 print(object.size(x), units = "MB") or pryr::object_size(x) –ExperimenteR Aug 17 '15 at 4:34 Or format(object.size(x), units = "Mb"). It's all right there at the top of help(object.size) –Rich Scriven Aug 17 '15 at 4:36 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted ?object.size this gives object.size(x) ## S3 method for class 'object_size' format(x, units = "b", ...) ## S3 method for class 'object_size' print(x, quote = FALSE, units = "b", ...) notice that object.size()takes one argument, x. However, we can print the result of object.size(x) and then use the units argument (as mentioned in the comments) print(object.size(c(5,6,1)), units="Mb") # 0 Mb share|improve this answer answered Aug 17 '15 at 4:39 na
be down. Please try the request again. Your cache administrator is webmaster. Generated Mon, 10 Oct 2016 06:54:35 GMT by s_ac4 (squid/3.5.20)