Hi,
I am trying to export a historgram with journal's requirement in JPEG or TIF/TIFF format, at least 300 dpi and minimal image width is 30 mm (85 pt). However, my code below did not work and kept exporting PNG files with the size of 85 KB.
ods listing gpath="H:\Study\Results" image_dpi=300 /*width=12cm height=9cm*/ device=tiff;
ods graphics / imagename="Lesion Size" ;
title "Distribution of Lesion Size";
proc sgplot data=All;
histogram long_cm / transparency=0.5 scale=percent datalabel=count;
xaxis values=(0 to 11 by 1);
density long_cm / type=normal ;
keylegend / location=inside position=topright across=1 ;
run;
title;
Here is the requirement of the image from the journal: https://www.elsevier.com/authors/policies-and-guidelines/artwork-and-media-instructions/artwork-form...
Could anyone please help me to modify my code? Thank you!
https://support.sas.com/rnd/datavisualization/gtl/overview_sect22.htm
https://support.sas.com/rnd/app/ODSGraphics/TipSheet_ODSGraphics.pdf
These links might help you. I think you have to do ods graphics / imagefmt=JPEG to get jpeg format.
https://support.sas.com/rnd/datavisualization/gtl/overview_sect22.htm
https://support.sas.com/rnd/app/ODSGraphics/TipSheet_ODSGraphics.pdf
These links might help you. I think you have to do ods graphics / imagefmt=JPEG to get jpeg format.
Try that code but with your data. It makes a journal style JPEG.
Does anone know if the default blue or red color meets this journal critera (https://www.elsevier.com/authors/policies-and-guidelines/artwork-and-media-instructions/artwork-type...)?
Grayscale images are distinct from black-and-white images, which in the context of computer imaging are images with only two colors, black and white. Grayscale images have many shades of gray in between.
In computing, a grayscale image is an image in which the value of each pixel is a single sample, that is, it carries the full (and only) information about its intensity.
Grayscale is an image type that defines how the information in the image is to be stored and imaged. A grayscale image is sometimes referred to as an eight-bit image. This format is generally used for halftones because it stores the information for each pixel as a level of gray. There are 256 levels of gray in a halftone.
RGB images are made of three color channels (Red, Green, Blue). An 8-bit per pixel RGB image has 256 possible values for each channel which means it has over 16 million possible color values. RGB images with 8 bits per channel are sometimes called 24-bit images (8 bits x 3 channels = 24 bits of data for each pixel).
RGB artwork should comply with the following requirements regardless of the software and hardware used in the process.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.