Search
 
SCRIPT & CODE EXAMPLE
 

R

show 2 ggplots together

require(gridExtra) #import the grid.arrange function through gridExtra package

plot1 <- qplot(x,y1)
plot2 <- qplot(x,y2)
grid.arrange(plot1, plot2, ncol=2)
Comment

PREVIOUS NEXT
Code Example
R :: na by column r 
R :: r - reorder columns in data frame 
R :: convert a datetime to date r 
R :: setwd in r 
R :: r convert to factor 
R :: r replace space with 
R :: convert first row to header in r 
R :: how to create a loop for different categories in a column in r 
R :: how to link world bank data into r 
R :: how to wait for a key press in R 
R :: change labels in legend R 
R :: combine ro columns in r 
R :: how to remove columns in a table in r 
R :: find nas in a vector r 
R :: number of days in a data set in r 
R :: link excel to r 
R :: remove a loaded library from workspace r 
R :: %in% in r 
R :: ggplot - subset top 10 in a stack bar plot 
R :: change the font of the title in a plot in r 
R :: Iteration in R 
Rust :: print number as binary in rust 
Rust :: rust sort 
Rust :: rust string slice 
Rust :: Split text on several separators 
Rust :: transpose a matrix 
Rust :: rust enter number from keyboard / stdin 
Rust :: rust comments 
Rust :: armanriazi•rust•thread 
Rust :: armanriazi•rust•unsafe•safeabstraction 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =