SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Denali
Quartz | Level 8

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!

1 ACCEPTED SOLUTION
5 REPLIES 5
tarheel13
Rhodochrosite | Level 12

lrackley_0-1610734130453.png

lrackley_1-1610734158034.png

Try that code but with your data. It makes a journal style JPEG. 

 

Denali
Quartz | Level 8

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 in TIFF/JPEG format

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.

Requirements

  • Images should be in grayscale mode
  • Images should have a minimum resolution of 300 dpi
  • Images should be tightly cropped
  • If applicable please re-label your artwork with a font recommended by Elsevier and ensure it is an appropriate font size
  • Save your image in TIFF format (or as JPEG, maximum quality)

RGB images in TIFF/JPEG format

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.

Requirements

  • Images should be in RGB mode, preferably.
  • Images should have a minimum resolution of 300 dpi.
  • Images should be tightly cropped.
  • If applicable please re-label your artwork with a font supported by Elsevier and ensure it is an appropriate font size.
  • Save your image in TIFF format (or as JPEG, maximum quality).
Denali
Quartz | Level 8
How do I remove the journal style? Noe all my graphs are black and white....
tarheel13
Rhodochrosite | Level 12
Take off style=journal. I suggest reading more documentation and googling what you need to do.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 3607 views
  • 1 like
  • 2 in conversation