Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Desktop-Sprite-image-Interval
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
library(ggplot2) p <- function(x) { return(ifelse(x>=0 & x <=744, 2, ifelse(x>744 & x <= 3600, x/377, ifelse(x>3600 & x<=21600, x/377, x/377)))) } ggplot(data.frame(x=c(0, 21600/3)), aes(x=x)) + geom_path(aes(colour="darkblue"), stat="function", fun=p) + ggtitle("(Desktop) Sprite image Interval") + labs(x="Video duration (seconds)", y="Image Interval (seconds)") + scale_colour_identity("Piecewise Function", guide="legend", labels = c("ImageInterval(duration)")) + theme(legend.text=element_text(size = 8.5)) + theme(plot.title=element_text(size=10, face="bold")) + theme(axis.title.x=element_text(face="italic", size=9.5)) + theme(axis.title.y=element_text(size=9.5))
[
+
]
Show input
Absolute running time: 1.69 sec, cpu time: 2.12 sec, memory peak: 48 Mb, absolute service time: 1,7 sec
fork mode
|
history
|
discussion