Giter VIP home page Giter VIP logo

qtpaint's Introduction

GGobi is an interactive, direct manipulation tool for visualizing high-dimensional data across linked plots. The GUI is built using Gtk+. It reads data in regular ASCII format and more richly using an XML format. Plugins for other formats are also available.

Build and install

./bootstrap
./configure
make
make install

qtpaint's People

Contributors

chxy avatar deepayan avatar eddelbuettel avatar hadley avatar lawremi avatar yihui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qtpaint's Issues

suppress the message "Cell (1, 1) already taken"?

a warning message like QGridLayoutEngine::addItem: Cell (1, 1) already taken is issued when several layers are arranged into the same cell of a root layer, and I do not think it is worth a special message here; it may even confuse users

Error in Sweave("intro.Rnw")

When I try to sweave the vignette file, "Intro.Rnw", I get the following error:

>Sweave("/Library/Frameworks/R.framework/Versions/2.12/Resources/library/qtpaint/doc/intro.Rnw")
Writing to file intro.tex
Processing code chunks ...
 1 : term verbatim (label=options)
 2 : echo (label=conventional-scatterplot)
 3 : echo (label=event-driven-scatterplot)
 4 : echo term verbatim (label=drawing-basics-paintFun)
 5 : echo term verbatim (label=drawing-basics-qlayer)
 6 : echo term verbatim (label=drawing-basics-scene-view)
 7 : echo term verbatim (label=drawing-basics-glyph)
Error:  chunk 7 (label=drawing-basics-glyph) 
Error in qinvoke(<environment>, "addEllipse", ...) : 
  could not find function "qpoint"

I don't see qpoint( ) in the package, but I didn't see the vignette trying to load any other packages. I'm not sure if its a bug, but I thought I'd bring it to your attention. If it helps, I'm running R 2.12.1 on Mac OSX 10.5.8.

Garrett

Error in viewGeometry(scene) : object 'scene' not found

qlayer(qscene()) results in

Error in viewGeometry(scene) : object 'scene' not found

It seems to be related to commit 0573db6.

A more realistic example would be:

library(cranvas)
qtennis <- qdata(tennis)
qscatter(first.serve.pct, second.serve.pts, data=qtennis, 
  xlab="First Serve %", ylab="Second Serve Points")

resulting in

Error in viewGeometry(scene) : object 'scene' not found
> traceback()
3: viewGeometry(scene) at layer.R#145
2: qlayer(scene)
1: qscatter(first.serve.pct, second.serve.pts, data = qtennis, xlab = "First Serve %", 
       ylab = "Second Serve Points")

Install on Mac

I am having trouble installing

** preparing package for lazy loading
Error : package ‘qtbase’ was built before R 3.0.0: please re-install it
ERROR: lazy loading failed for package ‘qtpaint’

Current R output:

> R.version
               _                           
platform       x86_64-apple-darwin10.8.0   
arch           x86_64                      
os             darwin10.8.0                
system         x86_64, darwin10.8.0        
status                                     
major          3                           
minor          0.2                         
year           2013                        
month          09                          
day            25                          
svn rev        63987                       
language       R                           
version.string R version 3.0.2 (2013-09-25)
nickname       Frisbee Sailing             
> install.packages("qtpaint", type = "source")
Installing package into ‘/Users/barret/R’
(as ‘lib’ is unspecified)
trying URL 'http://cran.r-project.org/src/contrib/qtpaint_0.9.0.tar.gz'
Content type 'application/x-gzip' length 257520 bytes (251 Kb)
opened URL
==================================================
downloaded 251 Kb

* installing *source* package ‘qtpaint’ ...
** package ‘qtpaint’ successfully unpacked and MD5 sums checked
** libs
** arch - 
mkdir -p ../kdebindings-build;
mkdir -p ../src-build;
cd ../kdebindings-build; \
    cmake ../kdebindings \
          -DCMAKE_INSTALL_PREFIX=../inst/local -DQTBASE_DIR=/Users/barret/R/qtbase \
          -DR_INCLUDE_DIR=/Library/Frameworks/R.framework/Resources/include; \
    DYLD_LIBRARY_PATH=:/Users/barret/R/qtbase/local/lib \
    LD_LIBRARY_PATH=:/Users/barret/R/qtbase/local/lib make install
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found version "4.8.6") 
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework  
-- Build qanviz smoke... 
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    R_INCLUDE_DIR


-- Build files have been written to: /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/kdebindings-build
Scanning dependencies of target generate_smoke
[100%] Generating smokedata.cpp, x_1.cpp
using generator "/Users/barret/R/qtbase/local/bin/../lib/smokegen/generator_smoke.so" 
include directory "/usr/include;/Library/Frameworks/QtCore.framework" doesn't exist 
include directory "QT_QTDECLARATIVE_INCLUDE_DIR-NOTFOUND" doesn't exist 
parsing "/private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/kdebindings/smoke/qanviz/qanviz_includes.h" 
Generating SMOKE sources... 
preparing SMOKE data [qanviz]
writing out smokedata.cpp [qanviz]
writing out x_*.cpp [qanviz]
Done. 
[100%] Built target generate_smoke
Install the project...
-- Install configuration: ""
-- Installing: /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/inst/local/include/smoke/qanviz_smoke.h
-- Installing: /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/kdebindings/../src-build/smokedata.cpp
-- Installing: /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/kdebindings/../src-build/x_1.cpp
-- Installing: /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/kdebindings/../src-build/qanviz_includes.h
cd ../src-build; \
    cmake ../src \
          -DCMAKE_INSTALL_PREFIX=../src \
          -DR_LIBRARIES="-dynamiclib -Wl,-headerpad_max_install_names  -undefined dynamic_lookup -single_module -multiply_defined suppress -F/Library/Frameworks/R.framework/.. -framework R" \
          -DR_INCLUDES=/Library/Frameworks/R.framework/Resources/include \
          -DQTBASE_DIR=/Users/barret/R/qtbase; \
    make install
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found suitable version "4.8.6", minimum required is "4.4.0") 
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework  
-- Configuring done
-- Generating done
-- Build files have been written to: /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/src-build
[  4%] Generating moc_PlotView.cxx
[  8%] Generating moc_Layer.cxx
[ 13%] Generating moc_RLayer.cxx
Scanning dependencies of target qtpaint
[ 17%] Building CXX object CMakeFiles/qtpaint.dir/Layer.cpp.o
[ 21%] Building CXX object CMakeFiles/qtpaint.dir/Painter.cpp.o
[ 26%] Building CXX object CMakeFiles/qtpaint.dir/QtPainter.cpp.o
[ 30%] Building CXX object CMakeFiles/qtpaint.dir/imports.cpp.o
In file included from /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/src/imports.cpp:1:
In file included from /Users/barret/R/qtbase/include/qtbase.cpp:5:
/Users/barret/R/qtbase/include/qtbase.h:48:9: warning: 'sexp2qstring' has C-linkage specified, but returns user-defined type 'QString' which is incompatible with C
      [-Wreturn-type-c-linkage]
QString sexp2qstring(SEXP s);
        ^
1 warning generated.
[ 34%] Building CXX object CMakeFiles/qtpaint.dir/OpenGLPainter.cpp.o
[ 39%] Building CXX object CMakeFiles/qtpaint.dir/RLayer.cpp.o
In file included from /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/src/RLayer.cpp:4:
/Users/barret/R/qtbase/include/qtbase.h:48:9: warning: 'sexp2qstring' has C-linkage specified, but returns user-defined type 'QString' which is incompatible with C
      [-Wreturn-type-c-linkage]
QString sexp2qstring(SEXP s);
        ^
1 warning generated.
[ 43%] Building CXX object CMakeFiles/qtpaint.dir/init.cpp.o
In file included from /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/src/init.cpp:1:
/Users/barret/R/qtbase/include/qtbase.h:48:9: warning: 'sexp2qstring' has C-linkage specified, but returns user-defined type 'QString' which is incompatible with C
      [-Wreturn-type-c-linkage]
QString sexp2qstring(SEXP s);
        ^
1 warning generated.
[ 47%] Building CXX object CMakeFiles/qtpaint.dir/PainterWrappers.cpp.o
In file included from /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/src/PainterWrappers.cpp:1:
/Users/barret/R/qtbase/include/qtbase.h:48:9: warning: 'sexp2qstring' has C-linkage specified, but returns user-defined type 'QString' which is incompatible with C
      [-Wreturn-type-c-linkage]
QString sexp2qstring(SEXP s);
        ^
1 warning generated.
[ 52%] Building CXX object CMakeFiles/qtpaint.dir/ScenePainter.cpp.o
[ 56%] Building CXX object CMakeFiles/qtpaint.dir/paintUtils.cpp.o
[ 60%] Building CXX object CMakeFiles/qtpaint.dir/PlotView.cpp.o
[ 65%] Building CXX object CMakeFiles/qtpaint.dir/scene.cpp.o
In file included from /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/src/scene.cpp:7:
/Users/barret/R/qtbase/include/qtbase.h:48:9: warning: 'sexp2qstring' has C-linkage specified, but returns user-defined type 'QString' which is incompatible with C
      [-Wreturn-type-c-linkage]
QString sexp2qstring(SEXP s);
        ^
1 warning generated.
[ 69%] Building CXX object CMakeFiles/qtpaint.dir/QtBasePainter.cpp.o
[ 73%] Building CXX object CMakeFiles/qtpaint.dir/convert.cpp.o
[ 78%] Building CXX object CMakeFiles/qtpaint.dir/TestWidget.cpp.o
In file included from /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/src/TestWidget.cpp:11:
/Users/barret/R/qtbase/include/qtbase.h:48:9: warning: 'sexp2qstring' has C-linkage specified, but returns user-defined type 'QString' which is incompatible with C
      [-Wreturn-type-c-linkage]
QString sexp2qstring(SEXP s);
        ^
1 warning generated.
[ 82%] Building CXX object CMakeFiles/qtpaint.dir/smokedata.cpp.o
[ 86%] Building CXX object CMakeFiles/qtpaint.dir/x_1.cpp.o
[ 91%] Building CXX object CMakeFiles/qtpaint.dir/moc_Layer.cxx.o
[ 95%] Building CXX object CMakeFiles/qtpaint.dir/moc_RLayer.cxx.o
[100%] Building CXX object CMakeFiles/qtpaint.dir/moc_PlotView.cxx.o
Linking CXX shared library qtpaint.so
[100%] Built target qtpaint
Install the project...
-- Install configuration: ""
-- Installing: /private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/Rtmp8JQvtu/R.INSTALL74e26e805651/qtpaint/src/./qtpaint.so
installing to /Users/barret/R/qtpaint/libs
** R
** demo
** inst
** preparing package for lazy loading
Error : package ‘qtbase’ was built before R 3.0.0: please re-install it
ERROR: lazy loading failed for package ‘qtpaint’
* removing ‘/Users/barret/R/qtpaint’

The downloaded source packages are in
    ‘/private/var/folders/b_/p70ksf2n01n6bjj3zs47s8rc0000gn/T/RtmpMwY19a/downloaded_packages’
Warning message:
In install.packages("qtpaint", type = "source") :
  installation of package ‘qtpaint’ had non-zero exit status
> 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.