<!--gterm notebook command=r-->
## Graphterm Notebook using R: Example 1


```{r}
# Load GraphTerm API helper functions
source(paste(Sys.getenv("GTERM_DIR"),"/bin/gterm.R", sep=""))

```

```{r}
g <- gcairo()         # Setup Cairo device for GraphTerm
x <- rnorm(100,0,1)
hist(x, col="blue")
g$frame()             # Display plot as inline image
```

```output

format = ARGB (400 x 300)

```

![image][output-fig1-R-example1.R.md]

[output-fig1-R-example1.R.md]: data:image/png;base64,[encoded data, 7620 characters]
